public function AliasManager::cacheClear in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Path/AliasManager.php \Drupal\Core\Path\AliasManager::cacheClear()
Clear internal caches in alias manager.
Parameters
$source: Source path of the alias that is being inserted/updated. Can be omitted if entire cache needs to be flushed.
Overrides AliasManagerInterface::cacheClear
File
- core/
lib/ Drupal/ Core/ Path/ AliasManager.php, line 259 - Contains \Drupal\Core\Path\AliasManager.
Class
- AliasManager
- The default alias manager implementation.
Namespace
Drupal\Core\PathCode
public function cacheClear($source = NULL) {
if ($source) {
foreach (array_keys($this->lookupMap) as $lang) {
unset($this->lookupMap[$lang][$source]);
}
}
else {
$this->lookupMap = array();
}
$this->noPath = array();
$this->noAlias = array();
$this->langcodePreloaded = array();
$this->preloadedPathLookups = array();
$this->cache
->delete($this->cacheKey);
$this
->pathAliasWhitelistRebuild($source);
}