You are here

public function AliasManager::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 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;
}