BlockAddController::blockAddConfigureForm

public BlockAddController::blockAddConfigureForm($plugin_id, $theme) Build the block instance add form. Parameters string $plugin_id: The plugin ID for the block instance. string $theme: The name of the theme for the block instance. Return value array The block instance edit form. File core/modules/block/src/Controller/BlockAddController.php, line 23 Class BlockAddController Controller for building the block instance add form. Namespace Drupal\block\Controller Code public function bl

Number::getInfo

public Number::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Number.php, line 38 Class Number Provides a form element for numeric input, with special numeric validation. Namespace Drupal\Core\Ren

EarlyRenderingControllerWrapperSubscriber::onController

public EarlyRenderingControllerWrapperSubscriber::onController(FilterControllerEvent $event) Ensures bubbleable metadata from early rendering is not lost. Parameters \Symfony\Component\HttpKernel\Event\FilterControllerEvent $event: The controller event. File core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php, line 90 Class EarlyRenderingControllerWrapperSubscriber Subscriber that wraps controllers, to handle early rendering. Namespace Drupal\Core\EventSu

EntityTypeManager::__construct

public EntityTypeManager::__construct(\Traversable $namespaces, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache, TranslationInterface $string_translation, ClassResolverInterface $class_resolver) Constructs a new Entity plugin manager. Parameters \Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations, \Drupal\Core\Extension\ModuleHandlerInterface $module_handler:

ConfigDependencies::$authProviders

The authentication providers, keyed by ID. Type: string[] File core/modules/rest/src/Entity/ConfigDependencies.php, line 28 Class ConfigDependencies Calculates rest resource config dependencies. Namespace Drupal\rest\Entity Code protected $authProviders;

content_translation_form_alter

content_translation_form_alter(array &$form, FormStateInterface $form_state) Implements hook_form_alter(). File core/modules/content_translation/content_translation.module, line 291 Allows entities to be translated into different languages. Code function content_translation_form_alter(array &$form, FormStateInterface $form_state) { $form_object = $form_state->getFormObject(); if (!($form_object instanceof ContentEntityFormInterface)) { return; } $entity = $form_object-&

hook_entity_storage_load

hook_entity_storage_load(array $entities, $entity_type) Act on content entities when loaded from the storage. The results of this hook will be cached. Parameters \Drupal\Core\Entity\EntityInterface[] $entities: The entities keyed by entity ID. string $entity_type: The type of entities being loaded (i.e. node, user, comment). See also hook_entity_load() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/lib/Drupal/Core/Entity/entity.api.php, line 870 Hook

FloodInterface

Defines an interface for flood controllers. Hierarchy interface \Drupal\Core\Flood\FloodInterface File core/lib/Drupal/Core/Flood/FloodInterface.php, line 8 Namespace Drupal\Core\Flood Members Name Modifiers Type Description FloodInterface::clear public function Makes the flood control mechanism forget an event for the current visitor. FloodInterface::garbageCollection public function Cleans up expired flood events. This method is called automatically on cron run

User::setExistingPassword

public User::setExistingPassword($password) Sets the existing plain text password. Required for validation when changing the password, name or email fields. Parameters string $password: The existing plain text password of the user. Return value $this Overrides UserInterface::setExistingPassword File core/modules/user/src/Entity/User.php, line 390 Class User Defines the user entity class. Namespace Drupal\user\Entity Code public function setExistingPassword($password) { $this->ge

SelectInterface::getOrderBy

public &SelectInterface::getOrderBy() Returns a reference to the order by array for this query. Because this method returns by reference, alter hooks may edit the order-by array directly to make their changes. If just adding additional ordering fields, however, the use of orderBy() is preferred. Note that this method must be called by reference as well: $fields =& $query->getOrderBy(); Return value A reference to the expression array structure. File core/lib/Drupal/Core/Database/Qu