update-version.html.twig

Default theme implementation for the version display of a project. Available variables: attributes: HTML attributes suitable for a container element. title: The title of the project. version: A list of data about the latest released version, containing: version: The version number. date: The date of the release. download_link: The URL for the downloadable file. release_link: The URL for the release notes. File core/modules/update/templates/update-version.html.twig Related topics Th

LocaleConfigSubscriber::getSubscribedEvents

public static LocaleConfigSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)

RoutePreloader::__construct

public RoutePreloader::__construct(RouteProviderInterface $route_provider, StateInterface $state, CacheBackendInterface $cache) Constructs a new RoutePreloader. Parameters \Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider. \Drupal\Core\State\StateInterface $state: The state key value store. \Drupal\Core\Cache\CacheBackendInterface $cache: File core/lib/Drupal/Core/Routing/RoutePreloader.php, line 59 Class RoutePreloader Defines a class which preloads non-admi

Registry::$runtimeRegistry

An array of incomplete, runtime theme registries, keyed by theme name. Type: \Drupal\Core\Utility\ThemeRegistry[] File core/lib/Drupal/Core/Theme/Registry.php, line 106 Class Registry Defines the theme registry service. Namespace Drupal\Core\Theme Code protected $runtimeRegistry = [];

Entity::invalidateTagsOnDelete

protected static Entity::invalidateTagsOnDelete(EntityTypeInterface $entity_type, array $entities) Invalidates an entity's cache tags upon delete. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. File core/lib/Drupal/Core/Entity/Entity.php, line 549 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code protected static function invalidateTagsOnDelete

PoDatabaseReader::setOptions

public PoDatabaseReader::setOptions(array $options) Set the options for the current reader. File core/modules/locale/src/PoDatabaseReader.php, line 75 Class PoDatabaseReader Gettext PO reader working with the locale module database. Namespace Drupal\locale Code public function setOptions(array $options) { $options += array( 'customized' => FALSE, 'not_customized' => FALSE, 'not_translated' => FALSE, ); $this->options = $options; }

FileSystem::mkdirCall

protected FileSystem::mkdirCall($uri, $mode, $recursive, $context) Helper function. Ensures we don't pass a NULL as a context resource to mkdir(). See also self::mkdir() File core/lib/Drupal/Core/File/FileSystem.php, line 235 Class FileSystem Provides helpers to operate on files and stream wrappers. Namespace Drupal\Core\File Code protected function mkdirCall($uri, $mode, $recursive, $context) { if (is_null($context)) { return mkdir($uri, $mode, $recursive); } else { ret

KeyValueEntityStorage::doLoadMultiple

public KeyValueEntityStorage::doLoadMultiple(array $ids = NULL) Performs storage-specific loading of entities. Override this method to add custom functionality directly after loading. This is always called, while self::postLoad() is only called when there are actual results. Parameters array|null $ids: (optional) An array of entity IDs, or NULL to load all entities. Return value \Drupal\Core\Entity\EntityInterface[] Associative array of entities, keyed on the entity ID. Overrides EntityStorag

FieldStorageDefinitionInterface::isTranslatable

public FieldStorageDefinitionInterface::isTranslatable() Returns whether the field supports translation. Return value bool TRUE if the field supports translation. File core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 87 Class FieldStorageDefinitionInterface Defines an interface for entity field storage definitions. Namespace Drupal\Core\Field Code public function isTranslatable();

ViewExecutable::getCurrentPage

public ViewExecutable::getCurrentPage() Gets the current page from the pager. Return value int The current page. File core/modules/views/src/ViewExecutable.php, line 531 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public function getCurrentPage() { // If the pager is already initialized, pass it through to the pager. if (!empty($this->pager)) { return $this->pager->getCurrentPage(); } if (isset($this->current_page)) { ret