function AliasManager::setCacheKey

Same name and namespace in other branches
  1. 9 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::setCacheKey()
  2. 10 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::setCacheKey()
  3. 11.x core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::setCacheKey()

Overrides CacheDecoratorInterface::setCacheKey

File

core/lib/Drupal/Core/Path/AliasManager.php, line 160

Class

AliasManager
The default alias manager implementation.

Namespace

Drupal\Core\Path

Code

public function setCacheKey($key) {
    // Prefix the cache key to avoid clashes with other caches.
    $this->cacheKey = 'preload-paths:' . $key;
}

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