ReorderDisplays::getFormId

public ReorderDisplays::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/views_ui/src/Form/Ajax/ReorderDisplays.php, line 24 Class ReorderDisplays Displays the display reorder form. Namespace Drupal\views_ui\Form\Ajax Code public function getFormId() { return 'views_ui_reorder_displays_form'; }

Attribute::__construct

public Attribute::__construct($attributes = array()) Constructs a \Drupal\Core\Template\Attribute object. Parameters array $attributes: An associative array of key-value pairs to be converted to attributes. File core/lib/Drupal/Core/Template/Attribute.php, line 80 Class Attribute Collects, sanitizes, and renders HTML attributes. Namespace Drupal\Core\Template Code public function __construct($attributes = array()) { foreach ($attributes as $name => $value) { $this->offsetS

EntityDisplayBase::__sleep

public EntityDisplayBase::__sleep() Overrides ConfigEntityBase::__sleep File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 510 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code public function __sleep() { // Only store the definition, not external objects or derived data. $keys = array_keys($this->toArray()); // In addition, we need to keep the entity type and the "is new" status. $keys[] = 'en

forum_form_node_form_alter

forum_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) Implements hook_form_BASE_FORM_ID_alter() for \Drupal\node\NodeForm. File core/modules/forum/forum.module, line 321 Provides discussion forums. Code function forum_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id) { $node = $form_state->getFormObject()->getEntity(); if (isset($node->taxonomy_forums) && !$node->isNew()) { $forum_terms = $node->taxonomy_forums

ModerationStateTransitionListBuilder::buildHeader

public ModerationStateTransitionListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides DraggableListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/content_moderation/src/ModerationStateTransitionListBuilder.php, line 72 Class ModerationStateTransitionListBuilder Provides a listing of Moderation state transition entities. Namespace Drupal\content_m

Actions::preRenderActionsDropbutton

public static Actions::preRenderActionsDropbutton(&$element, FormStateInterface $form_state, &$complete_form) #pre_render callback for #type 'actions'. This callback iterates over all child elements of the #type 'actions' container to look for elements with a #dropbutton property, so as to group those elements into dropbuttons. As such, it works similar to #group, but is specialized for dropbuttons. The value of #dropbutton denotes the dropbutton to group the child element into. For exa

UserController::create

public static UserController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service c

MemoryStorage::$data

The actual storage of key-value pairs. Type: array File core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php, line 15 Class MemoryStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code protected $data = array();

Entity::getConfigTarget

public Entity::getConfigTarget() Gets the configuration target identifier for the entity. Used to supply the correct format for storing a reference targeting this entity in configuration. Return value string The configuration target identifier. Overrides EntityInterface::getConfigTarget File core/lib/Drupal/Core/Entity/Entity.php, line 627 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public function getConfigTarget() { // For content entities, use the

EntityTypeInterface::getKey

public EntityTypeInterface::getKey($key) Gets a specific entity key. Parameters string $key: The name of the entity key to return. Return value string|bool The entity key, or FALSE if it does not exist. See also self::getKeys() File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 122 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getKey($key);