CacheCollectorInterface

Provides a caching wrapper to be used in place of large structures. This should be extended by systems that need to cache large amounts of data to calling functions. These structures can become very large, so this class is used to allow different strategies to be used for caching internally (lazy loading, building caches over time etc.). This can dramatically reduce the amount of data that needs to be loaded from cache backends on each request, and memory usage from static caches of that same d

EntityTypeInterface::getBundleEntityType

public EntityTypeInterface::getBundleEntityType() Gets the name of the entity type which provides bundles. Return value string|null The name of the entity type which provides bundles, or NULL if the entity type does not have a bundle entity type. File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 533 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function getBundleEntityType();

AlreadyInstalledException::__construct

public AlreadyInstalledException::__construct(TranslationInterface $string_translation) Constructs a new "already installed" exception. Parameters \Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation manager. Overrides InstallerException::__construct File core/lib/Drupal/Core/Installer/Exception/AlreadyInstalledException.php, line 18 Class AlreadyInstalledException Exception thrown if Drupal is installed already. Namespace Drupal\Core\Installe

FieldStorageDefinitionListener::$entityFieldManager

The entity field manager. Type: \Drupal\Core\Entity\EntityFieldManagerInterface File core/lib/Drupal/Core/Field/FieldStorageDefinitionListener.php, line 43 Class FieldStorageDefinitionListener Reacts to field storage definition CRUD on behalf of the Entity system. Namespace Drupal\Core\Field Code protected $entityFieldManager;

FormBuilder::renderFormTokenPlaceholder

public FormBuilder::renderFormTokenPlaceholder($placeholder) #lazy_builder callback; renders form CSRF token. Parameters string $placeholder: A string containing a placeholder, matching the value of the form's #token. Return value array A renderable array containing the CSRF token. File core/lib/Drupal/Core/Form/FormBuilder.php, line 661 Class FormBuilder Provides form building and processing. Namespace Drupal\Core\Form Code public function renderFormTokenPlaceholder($placeholder) {

EntityChangedInterface::setChangedTime

public EntityChangedInterface::setChangedTime($timestamp) Sets the timestamp of the last entity change for the current translation. Parameters int $timestamp: The timestamp of the last entity save operation. Return value $this File core/lib/Drupal/Core/Entity/EntityChangedInterface.php, line 35 Class EntityChangedInterface Defines an interface for entity change timestamp tracking. Namespace Drupal\Core\Entity Code public function setChangedTime($timestamp);

template_preprocess_link_formatter_link_separate

template_preprocess_link_formatter_link_separate(&$variables) Prepares variables for separated link field templates. This template outputs a separate title and link. Default template: link-formatter-link-separate.html.twig. Parameters array $variables: An associative array containing: title: (optional) A descriptive or alternate title for the link, which may be different than the actual link text. url_title: The anchor text for the link. url: A \Drupal\Core\Url object. File core/modul

ImageToolkitManager::getAvailableToolkits

public ImageToolkitManager::getAvailableToolkits() Gets a list of available toolkits. Return value array An array with the toolkit names as keys and the descriptions as values. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitManager.php, line 86 Class ImageToolkitManager Manages image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code public function getAvailableToolkits() { // Use plugin system to get list of available toolkits. $toolkits = $this->getDefinitions();

FormatterInterface::isApplicable

public static FormatterInterface::isApplicable(FieldDefinitionInterface $field_definition) Returns if the formatter can be used for the provided field. Parameters \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition that should be checked. Return value bool TRUE if the formatter can be used, FALSE otherwise. File core/lib/Drupal/Core/Field/FormatterInterface.php, line 99 Class FormatterInterface Interface definition for field formatter plugins. Namespace

EntityType::getListCacheContexts

public EntityType::getListCacheContexts() The list cache contexts associated with this entity type. Enables code listing entities of this type to ensure that rendered listings are varied as necessary, typically to ensure users of role A see other entities listed than users of role B. Return value string[] Overrides EntityTypeInterface::getListCacheContexts File core/lib/Drupal/Core/Entity/EntityType.php, line 808 Class EntityType Provides an implementation of an entity type and its metada