MemoryBackend::garbageCollection

public MemoryBackend::garbageCollection() Cleans up expired flood events. This method is called automatically on cron run. Overrides FloodInterface::garbageCollection See also system_cron() File core/lib/Drupal/Core/Flood/MemoryBackend.php, line 74 Class MemoryBackend Defines the memory flood backend. This is used for testing. Namespace Drupal\Core\Flood Code public function garbageCollection() { foreach ($this->events as $name => $identifiers) { foreach ($this->events[

EntityManager::onFieldDefinitionUpdate

public EntityManager::onFieldDefinitionUpdate(FieldDefinitionInterface $field_definition, FieldDefinitionInterface $original) Overrides FieldDefinitionListenerInterface::onFieldDefinitionUpdate Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 198 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function onFieldDefinitionUpdate(Field

ShortcutAccessControlHandler

Defines the access control handler for the shortcut entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\shortcut\ShortcutAccessControlHandler implements EntityHandlerInterface See also \Drupal\shortcut\Entity\Shortcut File core/modules/shortcut/src/ShortcutAccessControlHandler.php, line 18 Namespace Dru

EntityDefinitionUpdateManagerInterface

Defines an interface for managing entity definition updates. During the application lifetime, the definitions of various entity types and their data components (e.g., fields for fieldable entity types) can change. For example, updated code can be deployed. Some entity handlers may need to perform complex or long-running logic in response to the change. For example, a SQL-based storage handler may need to update the database schema. To support this, \Drupal\Core\Entity\EntityManagerInterface has

FormErrorHandler::displayErrorMessages

protected FormErrorHandler::displayErrorMessages(array $form, FormStateInterface $form_state) Loops through and displays all form errors. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. File core/lib/Drupal/Core/Form/FormErrorHandler.php, line 36 Class FormErrorHandler Handles form errors. Namespace Drupal\Core\Form Code protected function displayErrorMessages(array $for

LocalTaskManager::getDefinitions

public LocalTaskManager::getDefinitions() Gets the definition of all plugins for this type. Return value mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs. Overrides DefaultPluginManager::getDefinitions File core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 180 Class LocalTaskManager Provides the default local task manager using YML as primary definition. Namespace Drupal\Core\Menu Code public function getDefinitions() { $defin

EntityViewBuilder::getBuildDefaults

protected EntityViewBuilder::getBuildDefaults(EntityInterface $entity, $view_mode) Provides entity-specific defaults to the build process. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which the defaults should be provided. string $view_mode: The view mode that should be used. Return value array File core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 145 Class EntityViewBuilder Base class for entity view builders. Namespace Drupal\Core\Entity Code protec

FileCacheFactory::getPrefix

public static FileCacheFactory::getPrefix() Returns the cache prefix. Return value string The cache prefix. File core/lib/Drupal/Component/FileCache/FileCacheFactory.php, line 102 Class FileCacheFactory Creates a FileCache object. Namespace Drupal\Component\FileCache Code public static function getPrefix() { return static::$prefix; }

PoItem::formatSingular

private PoItem::formatSingular() Formats a singular translation. File core/lib/Drupal/Component/Gettext/PoItem.php, line 252 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code private function formatSingular() { $output = ''; $output .= 'msgid ' . $this->formatString($this->_source); $output .= 'msgstr ' . (isset($this->_translation) ? $this->formatString($this->_translation) : '""'); return $output; }

MenuLinkInterface::getWeight

public MenuLinkInterface::getWeight() Returns the weight of the menu link. Return value int The weight of the menu link, 0 by default. File core/lib/Drupal/Core/Menu/MenuLinkInterface.php, line 20 Class MenuLinkInterface Defines an interface for classes providing a type of menu link. Namespace Drupal\Core\Menu Code public function getWeight();