function AliasWhitelist::resolveCacheMiss
Same name in other branches
- 9 core/modules/path_alias/src/AliasWhitelist.php \Drupal\path_alias\AliasWhitelist::resolveCacheMiss()
- 10 core/modules/path_alias/src/AliasWhitelist.php \Drupal\path_alias\AliasWhitelist::resolveCacheMiss()
Overrides CacheCollector::resolveCacheMiss
1 call to AliasWhitelist::resolveCacheMiss()
- AliasWhitelist::get in core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php - Gets value from the cache.
File
-
core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php, line 128
Class
- AliasWhitelist
- Extends CacheCollector to build the path alias whitelist over time.
Namespace
Drupal\Core\PathCode
public function resolveCacheMiss($root) {
$exists = $this->pathAliasRepository
->pathHasMatchingAlias('/' . $root);
$this->storage[$root] = $exists;
$this->persist($root);
if ($exists) {
return TRUE;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.