function AliasManager::pathAliasWhitelistRebuild
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Path/AliasManager.php \Drupal\Core\Path\AliasManager::pathAliasWhitelistRebuild()
- 10 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::pathAliasWhitelistRebuild()
- 11.x core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::pathAliasWhitelistRebuild()
Rebuild the path alias white list.
Parameters
string $path: An optional path for which an alias is being inserted.
1 call to AliasManager::pathAliasWhitelistRebuild()
- AliasManager::cacheClear in core/
modules/ path_alias/ src/ AliasManager.php - Clears the static caches in alias manager and rebuilds the whitelist.
File
-
core/
modules/ path_alias/ src/ AliasManager.php, line 279
Class
- AliasManager
- The default alias manager implementation.
Namespace
Drupal\path_aliasCode
protected function pathAliasWhitelistRebuild($path = NULL) {
// When paths are inserted, only rebuild the whitelist if the path has a top
// level component which is not already in the whitelist.
if (!empty($path)) {
if ($this->whitelist
->get(strtok($path, '/'))) {
return;
}
}
$this->whitelist
->clear();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.