function WorkspacesAliasManager::cacheClear

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/src/WorkspacesAliasManager.php \Drupal\workspaces\WorkspacesAliasManager::cacheClear()

Clears the static caches in alias manager and rebuilds the whitelist.

Parameters

$source: Source path of the alias that is being inserted/updated. If omitted, the entire lookup static cache will be cleared and the whitelist will be rebuilt.

Overrides AliasManagerInterface::cacheClear

File

core/modules/workspaces/src/WorkspacesAliasManager.php, line 55

Class

WorkspacesAliasManager
Decorates the path_alias.manager service for workspace-specific caching.

Namespace

Drupal\workspaces

Code

public function cacheClear($source = NULL) : void {
  $this->inner
    ->cacheClear($source);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.