AliasWhitelist::resolveCacheMiss

public AliasWhitelist::resolveCacheMiss($root) Resolves a cache miss. When an offset is not found in the object, this is treated as a cache miss. This method allows classes using this implementation to look up the actual value and allow it to be cached. Parameters string $key: The offset that was requested. Return value mixed The value of the offset, or NULL if no value was found. Overrides CacheCollector::resolveCacheMiss File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 103 Class

AliasWhitelist::loadMenuPathRoots

protected AliasWhitelist::loadMenuPathRoots() Loads menu path roots to prepopulate cache. File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 71 Class AliasWhitelist Extends CacheCollector to build the path alias whitelist over time. Namespace Drupal\Core\Path Code protected function loadMenuPathRoots() { if ($roots = $this->state->get('router.path_roots')) { foreach ($roots as $root) { $this->storage[$root] = NULL; $this->persist($root); } } }

AliasWhitelist::lazyLoadCache

protected AliasWhitelist::lazyLoadCache() Loads the cache if not already done. Overrides CacheCollector::lazyLoadCache File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 52 Class AliasWhitelist Extends CacheCollector to build the path alias whitelist over time. Namespace Drupal\Core\Path Code protected function lazyLoadCache() { parent::lazyLoadCache(); // On a cold start $this->storage will be empty and the whitelist will // need to be rebuilt from scratch. The whitelis

AliasWhitelist::get

public AliasWhitelist::get($offset) Gets value from the cache. Parameters string $key: Key that identifies the data. Return value mixed The corresponding cache data. Overrides CacheCollector::get File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 83 Class AliasWhitelist Extends CacheCollector to build the path alias whitelist over time. Namespace Drupal\Core\Path Code public function get($offset) { $this->lazyLoadCache(); // this may be called with paths that are not repr

AliasWhitelist::clear

public AliasWhitelist::clear() Clears the collected cache entry. Overrides CacheCollector::clear File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 115 Class AliasWhitelist Extends CacheCollector to build the path alias whitelist over time. Namespace Drupal\Core\Path Code public function clear() { parent::clear(); $this->loadMenuPathRoots(); }

AliasWhitelist::$state

The Key/Value Store to use for state. Type: \Drupal\Core\State\StateInterface File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 20 Class AliasWhitelist Extends CacheCollector to build the path alias whitelist over time. Namespace Drupal\Core\Path Code protected $state;

AliasWhitelist::$aliasStorage

The Path CRUD service. Type: \Drupal\Core\Path\AliasStorageInterface File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 27 Class AliasWhitelist Extends CacheCollector to build the path alias whitelist over time. Namespace Drupal\Core\Path Code protected $aliasStorage;

AliasWhitelist

Extends CacheCollector to build the path alias whitelist over time. Hierarchy class \Drupal\Core\Cache\CacheCollector implements CacheCollectorInterface, DestructableInterfaceclass \Drupal\Core\Path\AliasWhitelist implements AliasWhitelistInterface File core/lib/Drupal/Core/Path/AliasWhitelist.php, line 13 Namespace Drupal\Core\Path Members Name Modifiers Type Description AliasWhitelist::$aliasStorage protected property The Path CRUD service. AliasWhitelist::$state

AliasStorageInterface::save

public AliasStorageInterface::save($source, $alias, $langcode = LanguageInterface::LANGCODE_NOT_SPECIFIED, $pid = NULL) Saves a path alias to the database. @thrown \InvalidArgumentException Thrown when either the source or alias has not a starting slash. Parameters string $source: The internal system path. string $alias: The URL alias. string $langcode: (optional) The language code of the alias. int|null $pid: (optional) Unique path alias identifier. Return value array|false FALSE if the path

AliasStorageInterface::preloadPathAlias

public AliasStorageInterface::preloadPathAlias($preloaded, $langcode) Pre-loads path alias information for a given list of source paths. Parameters array $preloaded: Paths that need preloading of aliases. string $langcode: Language code to search the path with. If there's no path defined for that language it will search paths without language. Return value string[] Source (keys) to alias (values) mapping. File core/lib/Drupal/Core/Path/AliasStorageInterface.php, line 81 Class AliasStorage