language_negotiation_url_prefixes_update

language_negotiation_url_prefixes_update() Update the list of prefixes from the installed languages. File core/modules/language/language.module, line 283 Add language handling functionality to Drupal. Code function language_negotiation_url_prefixes_update() { $config = \Drupal::configFactory()->getEditable('language.negotiation'); $prefixes = $config->get('url.prefixes'); foreach (\Drupal::languageManager()->getLanguages() as $language) { // The prefix for this language sho

ApcuBackend::$checksumProvider

The cache tags checksum provider. Type: \Drupal\Core\Cache\CacheTagsChecksumInterface File core/lib/Drupal/Core/Cache/ApcuBackend.php, line 38 Class ApcuBackend Stores cache items in the Alternative PHP Cache User Cache (APCu). Namespace Drupal\Core\Cache Code protected $checksumProvider;

EntityStorageBase::invokeHook

protected EntityStorageBase::invokeHook($hook, EntityInterface $entity) Invokes a hook on behalf of the entity. Parameters string $hook: One of 'presave', 'insert', 'update', 'predelete', 'delete', or 'revision_delete'. \Drupal\Core\Entity\EntityInterface $entity: The entity object. File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 165 Class EntityStorageBase A base entity storage class. Namespace Drupal\Core\Entity Code protected function invokeHook($hook, EntityInterface

StatementEmpty

Empty implementation of a database statement. This class satisfies the requirements of being a database statement/result object, but does not actually contain data. It is useful when developers need to safely return an "empty" result set without connecting to an actual database. Calling code can then treat it the same as if it were an actual result set that happens to contain no records. Hierarchy class \Drupal\Core\Database\StatementEmpty implements \Iterator, StatementInterface See also \

EntityType::isRenderCacheable

public EntityType::isRenderCacheable() Indicates whether the rendered output of entities should be cached. Return value bool Overrides EntityTypeInterface::isRenderCacheable File core/lib/Drupal/Core/Entity/EntityType.php, line 350 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function isRenderCacheable() { return $this->render_cache; }

TableSortExtender::orderByHeader

public TableSortExtender::orderByHeader(array $header) Order the query based on a header array. Parameters array $header: Table header array. Return value \Drupal\Core\Database\Query\SelectInterface The called object. See also table.html.twig File core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 37 Class TableSortExtender Query extender class for tablesort queries. Namespace Drupal\Core\Database\Query Code public function orderByHeader(array $header) { $this->hea

LanguageNegotiationMethodBase::$currentUser

The current active user. File core/modules/language/src/LanguageNegotiationMethodBase.php, line 33 Class LanguageNegotiationMethodBase Base class for language negotiation methods. Namespace Drupal\language Code protected $currentUser;

Database::$databaseInfo

A processed copy of the database connection information from settings.php. Type: array File core/lib/Drupal/Core/Database/Database.php, line 50 Class Database Primary front-controller for the database system. Namespace Drupal\Core\Database Code static protected $databaseInfo = array();

ConstraintViolationBuilder::atPath

public ConstraintViolationBuilder::atPath($path) Stores the property path at which the violation should be generated. The passed path will be appended to the current property path of the execution context. Parameters string $path The property path: Return value ConstraintViolationBuilderInterface This builder Overrides ConstraintViolationBuilderInterface::atPath File core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php, line 136 Class ConstraintViolationBuilder Define

template_preprocess_book_navigation

template_preprocess_book_navigation(&$variables) Prepares variables for book navigation templates. Default template: book-navigation.html.twig. Parameters array $variables: An associative array containing the following key: book_link: An associative array of book link properties. Properties used: bid, link_title, depth, pid, nid. File core/modules/book/book.module, line 388 Allows users to create and organize related content in an outline. Code function template_preprocess_book_naviga