W3cubDocs

/Drupal 8

public function AliasManager::setCacheKey

public AliasManager::setCacheKey($key)

Specify the key to use when writing the cache.

Overrides CacheDecoratorInterface::setCacheKey

File

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

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Path!AliasManager.php/function/AliasManager::setCacheKey/8.1.x