function AliasManager::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Path/AliasManager.php \Drupal\Core\Path\AliasManager::__construct()
  2. 10 core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::__construct()
  3. 11.x core/modules/path_alias/src/AliasManager.php \Drupal\path_alias\AliasManager::__construct()

Constructs an AliasManager.

Parameters

\Drupal\path_alias\AliasRepositoryInterface $alias_repository: The path alias repository.

\Drupal\path_alias\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/modules/path_alias/src/AliasManager.php, line 106

Class

AliasManager
The default alias manager implementation.

Namespace

Drupal\path_alias

Code

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

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