function AliasPrefixList::resolveCacheMiss
Overrides CacheCollector::resolveCacheMiss
1 call to AliasPrefixList::resolveCacheMiss()
- AliasPrefixList::get in core/
modules/ path_alias/ src/ AliasPrefixList.php - Gets value from the cache.
File
-
core/
modules/ path_alias/ src/ AliasPrefixList.php, line 103
Class
- AliasPrefixList
- Cache a list of valid alias prefixes.
Namespace
Drupal\path_aliasCode
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.