QueueGarbageCollectionInterface

If the Drupal 'queue' service implements this interface, the garbageCollection() method will be called during cron. Hierarchy interface \Drupal\Core\Queue\QueueGarbageCollectionInterface See also system_cron() File core/lib/Drupal/Core/Queue/QueueGarbageCollectionInterface.php, line 11 Namespace Drupal\Core\Queue Members Name Modifiers Type Description QueueGarbageCollectionInterface::garbageCollection public function Cleans queues of garbage.

UserInterface::setEmail

public UserInterface::setEmail($mail) Sets the email address of the user. Parameters string $mail: The new email address of the user. Return value \Drupal\user\UserInterface The called user entity. File core/modules/user/src/UserInterface.php, line 82 Class UserInterface Provides an interface defining a user entity. Namespace Drupal\user Code public function setEmail($mail);

QueueWorkerManager::__construct

public QueueWorkerManager::__construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) Constructs an QueueWorkerManager object. 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\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use. \Drupal\Core\Extension\ModuleHandlerInterface $

DrupalKernel::persistServices

protected DrupalKernel::persistServices(ContainerInterface $container, array $persist) Moves persistent service instances into a new container. File core/lib/Drupal/Core/DrupalKernel.php, line 1096 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected function persistServices(ContainerInterface $container, array $persist) { foreach ($persist as $id => $object) { // Do not override services already set() on the new containe

StateTransitionValidationInterface::isTransitionAllowed

public StateTransitionValidationInterface::isTransitionAllowed(ModerationStateInterface $from, ModerationStateInterface $to) Determines a transition allowed. Parameters \Drupal\content_moderation\ModerationStateInterface $from: The origin state. \Drupal\content_moderation\ModerationStateInterface $to: The destination state. Return value bool Is the transition allowed. File core/modules/content_moderation/src/StateTransitionValidationInterface.php, line 69 Class StateTransitionValidationIn

Textarea::getInfo

public Textarea::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/Textarea.php, line 34 Class Textarea Provides a form element for input of multiple-line text. Namespace Drupal\Core\Render\Element

ReliableQueueInterface

Reliable queue interface. Classes implementing this interface preserve the order of messages and guarantee that every item will be executed at least once. Hierarchy interface \Drupal\Core\Queue\QueueInterfaceinterface \Drupal\Core\Queue\ReliableQueueInterface Related topics Queue operations Queue items to allow later processing. File core/lib/Drupal/Core/Queue/ReliableQueueInterface.php, line 13 Namespace Drupal\Core\Queue Members Name Modifiers Type Description QueueInterf

SqlContentEntityStorageSchema::addSharedTableFieldForeignKey

protected SqlContentEntityStorageSchema::addSharedTableFieldForeignKey(FieldStorageDefinitionInterface $storage_definition, &$schema, $foreign_table, $foreign_column) Adds a foreign key for the specified field to the given schema definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The storage definition of the field to which to add a foreign key. array $schema: A reference to the schema array to be updated. string $foreign_table: The foreign table

NodeDeleteForm::logDeletionMessage

protected NodeDeleteForm::logDeletionMessage() Overrides ContentEntityDeleteForm::logDeletionMessage File core/modules/node/src/Form/NodeDeleteForm.php, line 39 Class NodeDeleteForm Provides a form for deleting a node. Namespace Drupal\node\Form Code protected function logDeletionMessage() { /** @var \Drupal\node\NodeInterface $entity */ $entity = $this->getEntity(); $this->logger('content')->notice('@type: deleted %title.', ['@type' => $entity->getType(), '%title'

QueueWorkerManager::processDefinition

public QueueWorkerManager::processDefinition(&$definition, $plugin_id) Performs extra processing on plugin definitions. By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method. Overrides DefaultPluginManager::processDefinition File core/lib/Drupal/Core/Queue/QueueWorkerManager.php, line 40 Class QueueWorkerManager Defines the queue worker manager. Namespace Drupal\Core\Queue Code publ