EntityDisplayFormBase::$displayContext

The display context. Either 'view' or 'form'. Type: string File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 28 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code protected $displayContext;

SearchPage::postDelete

public static SearchPage::postDelete(EntityStorageInterface $storage, array $entities) Acts on deleted entities before the delete hook is invoked. Used after the entities are deleted but before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides Entity::postDelete File core/modules/search/src/Entity/SearchPage.php, line 195 Class SearchPage Defi

PoItem::$_source

The source string or array of strings if it has plurals. Type: string or array See also $_plural File core/lib/Drupal/Component/Gettext/PoItem.php, line 33 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code private $_source;

MachineName::validateMachineName

public static MachineName::validateMachineName(&$element, FormStateInterface $form_state, &$complete_form) Form element validation handler for machine_name elements. Note that #maxlength is validated by _form_validate() already. This checks that the submitted value: Does not contain the replacement character only. Does not contain disallowed characters. Is unique; i.e., does not already exist. Does not exceed the maximum length (via #maxlength). Cannot be changed after creation (via #di

OpenDialogCommand::__construct

public OpenDialogCommand::__construct($selector, $title, $content, array $dialog_options = array(), $settings = NULL) Constructs an OpenDialogCommand object. Parameters string $selector: The selector of the dialog. string $title: The title of the dialog. string|array $content: The content that will be placed in the dialog, either a render array or an HTML string. array $dialog_options: (optional) Options to be passed to the dialog implementation. Any jQuery UI option can be used. See http://ap

FILE_EXISTS_REPLACE

Flag for dealing with existing files: Replace the existing file. Related topics File interface Common file handling functions. File core/includes/file.inc, line 58 API for handling file uploads and server file management. Code const FILE_EXISTS_REPLACE = 1;

FormStateValuesTrait::isValueEmpty

public FormStateValuesTrait::isValueEmpty($key) Implements \Drupal\Core\Form\FormStateInterface::isValueEmpty() File core/lib/Drupal/Core/Form/FormStateValuesTrait.php, line 70 Class FormStateValuesTrait Provides methods to manage form state values. Namespace Drupal\Core\Form Code public function isValueEmpty($key) { $exists = NULL; $value = NestedArray::getValue($this->getValues(), (array) $key, $exists); return !$exists || empty($value); }

Views::viewsData

public static Views::viewsData() Returns the views data service. Return value \Drupal\views\ViewsData Returns a views data cache object. File core/modules/views/src/Views.php, line 57 Class Views Static service container wrapper for views. Namespace Drupal\views Code public static function viewsData() { return \Drupal::service('views.views_data'); }

FieldItemBase::__set

public FieldItemBase::__set($name, $value) Magic method: Sets a property value. Parameters $property_name: The name of the property to set; e.g., 'title' or 'name'. $value: The value to set, or NULL to unset the property. Optionally, a typed data object implementing Drupal\Core\TypedData\TypedDataInterface may be passed instead of a plain value. Throws \InvalidArgumentException If a not existing property is set. Overrides FieldItemInterface::__set File core/lib/Drupal/Core/Field/FieldItemBase

ConfigEntityInterface::enable

public ConfigEntityInterface::enable() Enables the configuration entity. Return value $this File core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php, line 20 Class ConfigEntityInterface Defines a common interface for configuration entities. Namespace Drupal\Core\Config\Entity Code public function enable();