EntityForm::afterBuild

public EntityForm::afterBuild(array $element, FormStateInterface $form_state) Form element #after_build callback: Updates the entity with submitted data. Updates the internal $this->entity object with submitted values when the form is being rebuilt (e.g. submitted via AJAX), so that subsequent processing (e.g. AJAX callbacks) can rely on it. File core/lib/Drupal/Core/Entity/EntityForm.php, line 175 Class EntityForm Base class for entity forms. Namespace Drupal\Core\Entity Code publi

BlockListBuilder::$themeManager

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/modules/block/src/BlockListBuilder.php, line 45 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $themeManager;

AliasManager::setCacheKey

public AliasManager::setCacheKey($key) Specify the key to use when writing the cache. Overrides CacheDecoratorInterface::setCacheKey File core/lib/Drupal/Core/Path/AliasManager.php, line 117 Class AliasManager The default alias manager implementation. Namespace Drupal\Core\Path Code public function setCacheKey($key) { // Prefix the cache key to avoid clashes with other caches. $this->cacheKey = 'preload-paths:' . $key; }

NodeTypeAccessControlHandler

Defines the access control handler for the node type entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\node\NodeTypeAccessControlHandler See also \Drupal\node\Entity\NodeType File core/modules/node/src/NodeTypeAccessControlHandler.php, line 15 Namespace Drupal\node Members Name Modifiers Type

TypedDataInterface::setValue

public TypedDataInterface::setValue($value, $notify = TRUE) Sets the data value. Parameters mixed|null $value: The value to set in the format as documented for the data type or NULL to unset the data value. bool $notify: (optional) Whether to notify the parent object of the change. Defaults to TRUE. If a property is updated from a parent object, set it to FALSE to avoid being notified again. Throws \InvalidArgumentException If the value input is inappropriate. \Drupal\Core\TypedData\Exception

SearchPageRepository::getDefaultSearchPage

public SearchPageRepository::getDefaultSearchPage() Returns the default search page. Return value \Drupal\search\SearchPageInterface|bool The search page entity, or FALSE if no pages are active. Overrides SearchPageRepositoryInterface::getDefaultSearchPage File core/modules/search/src/SearchPageRepository.php, line 72 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function getDefaultSearchPage() { // Find all act

ConfigFieldMapper::setEntity

public ConfigFieldMapper::setEntity(ConfigEntityInterface $entity) Sets the entity instance for this mapper. This method can only be invoked when the concrete entity is known, that is in a request for an entity translation path. After this method is called, the mapper is fully populated with the proper display title and configuration names to use to check permissions or display a translation screen. Parameters \Drupal\Core\Config\Entity\ConfigEntityInterface $entity: The configuration entity t

BlockInterface

Provides an interface defining a block entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\block\BlockInterface File core/modules/block/src/BlockInterface.php, line 10 Namespace Drupal\block Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. BlockInterface::B

FormState::setTemporary

public FormState::setTemporary(array $temporary) Sets temporary data. Parameters array $temporary: Temporary data accessible during the current page request only. Return value $this Overrides FormStateInterface::setTemporary File core/lib/Drupal/Core/Form/FormState.php, line 772 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function setTemporary(array $temporary) { $this->temporary = $temporary; return $this; }

EditorDialogSave::render

public EditorDialogSave::render() Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render File core/modules/editor/src/Ajax/EditorDialogSave.php, line 35 Class EditorDialogSave Provides an AJAX command for saving the contents of an editor dialog. Namespace Drupal\editor\Ajax Code public function render() { return array( 'command' => 'editorDialogSave', 'values' => $this->values, ); }