W3cubDocs

/Drupal 8

public function AliasManager::__construct

public AliasManager::__construct(AliasStorageInterface $storage, AliasWhitelistInterface $whitelist, LanguageManagerInterface $language_manager, CacheBackendInterface $cache)

Constructs an AliasManager.

Parameters

\Drupal\Core\Path\AliasStorageInterface $storage: The alias storage service.

\Drupal\Core\Path\AliasWhitelistInterface $whitelist: The whitelist implementation to use.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Cache\CacheBackendInterface $cache: Cache backend.

File

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

Class

AliasManager
The default alias manager implementation.

Namespace

Drupal\Core\Path

Code

public function __construct(AliasStorageInterface $storage, AliasWhitelistInterface $whitelist, LanguageManagerInterface $language_manager, CacheBackendInterface $cache) {
  $this->storage = $storage;
  $this->languageManager = $language_manager;
  $this->whitelist = $whitelist;
  $this->cache = $cache;
}

© 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::__construct/8.1.x