BlockLibraryController::$contextRepository

The context repository. Type: \Drupal\Core\Plugin\Context\LazyContextRepository File core/modules/block/src/Controller/BlockLibraryController.php, line 33 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Namespace Drupal\block\Controller Code protected $contextRepository;

hook_entity_load

hook_entity_load(array $entities, $entity_type_id) Act on entities when loaded. This is a generic load hook called for all entity types loaded via the entity API. hook_entity_storage_load() should be used to load additional data for content entities. Parameters \Drupal\Core\Entity\EntityInterface[] $entities: The entities keyed by entity ID. string $entity_type_id: The type of entities being loaded (i.e. node, user, comment). See also hook_ENTITY_TYPE_load() Related topics Entity CRUD, editin

locale_config_batch_update_components

locale_config_batch_update_components(array $options, array $langcodes = array(), array $components = array()) Builds a locale batch to refresh configuration. Parameters array $options: An array with options that can have the following elements: 'finish_feedback': (optional) Whether or not to give feedback to the user when the batch is finished. Defaults to TRUE. array $langcodes: (optional) Array of language codes. Defaults to all translatable languages. array $components: (optional) Array

drupal_get_messages

drupal_get_messages($type = NULL, $clear_queue = TRUE) Returns all messages that have been set with drupal_set_message(). Parameters string $type: (optional) Limit the messages returned by type. Defaults to NULL, meaning all types. These values are supported: NULL 'status' 'warning' 'error' bool $clear_queue: (optional) If this is TRUE, the queue will be cleared of messages of the type specified in the $type parameter. Otherwise the queue will be left intact. Defaults to TRUE. Return value

locale_theme

locale_theme() Implements hook_theme(). File core/modules/locale/locale.module, line 184 Enables the translation of the user interface to languages other than English. Code function locale_theme() { return array( 'locale_translation_last_check' => array( 'variables' => array('last' => NULL), 'file' => 'locale.pages.inc', ), 'locale_translation_update_info' => array( 'variables' => array('updates' => array(), 'not_found' => array()),

RecursiveExtensionFilterIterator::accept

public RecursiveExtensionFilterIterator::accept() File core/lib/Drupal/Core/Extension/Discovery/RecursiveExtensionFilterIterator.php, line 129 Class RecursiveExtensionFilterIterator Filters a RecursiveDirectoryIterator to discover extensions. Namespace Drupal\Core\Extension\Discovery Code public function accept() { $name = $this->current()->getFilename(); // FilesystemIterator::SKIP_DOTS only skips '.' and '..', but not hidden // directories (like '.git'). if ($name[0] ==

FormStateDecoratorBase::disableRedirect

public FormStateDecoratorBase::disableRedirect($no_redirect = TRUE) Prevents the form from redirecting. Parameters bool $no_redirect: If TRUE, the form will not redirect. Return value $this Overrides FormStateInterface::disableRedirect File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 194 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function disableRedirect($no_redirect = TRUE) { $this->decoratedFormState->dis

TypedData::getParent

public TypedData::getParent() Returns the parent data structure; i.e. either complex data or a list. Return value \Drupal\Core\TypedData\TraversableTypedDataInterface|null The parent data structure, either complex data or a list; or NULL if this is the root of the typed data tree. Overrides TypedDataInterface::getParent File core/lib/Drupal/Core/TypedData/TypedData.php, line 194 Class TypedData The abstract base class for typed data. Namespace Drupal\Core\TypedData Code public functio

NullLockBackend::acquire

public NullLockBackend::acquire($name, $timeout = 30.0) Acquires a lock. Parameters string $name: Lock name. Limit of name's length is 255 characters. float $timeout: (optional) Lock lifetime in seconds. Defaults to 30.0. Return value bool Overrides LockBackendInterface::acquire File core/lib/Drupal/Core/Lock/NullLockBackend.php, line 25 Class NullLockBackend Defines a Null lock backend. Namespace Drupal\Core\Lock Code public function acquire($name, $timeout = 30.0) { return TRUE;

FileTransfer::removeFileJailed

abstract protected FileTransfer::removeFileJailed($destination) Removes a file. Parameters string $destination: The destination file to be removed. File core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 318 Class FileTransfer Defines the base FileTransfer class. Namespace Drupal\Core\FileTransfer Code abstract protected function removeFileJailed($destination);