You are here

protected function AliasManager::pathAliasWhitelistRebuild in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Path/AliasManager.php \Drupal\Core\Path\AliasManager::pathAliasWhitelistRebuild()

Rebuild the path alias white list.

Parameters

string $path: An optional path for which an alias is being inserted.

Return value

An array containing a white list of path aliases.

1 call to AliasManager::pathAliasWhitelistRebuild()
AliasManager::cacheClear in core/lib/Drupal/Core/Path/AliasManager.php
Clear internal caches in alias manager.

File

core/lib/Drupal/Core/Path/AliasManager.php, line 285
Contains \Drupal\Core\Path\AliasManager.

Class

AliasManager
The default alias manager implementation.

Namespace

Drupal\Core\Path

Code

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();
}