You are here

public function AliasWhitelist::__construct in Drupal 9

Constructs an AliasWhitelist object.

Parameters

string $cid: The cache id to use.

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

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

\Drupal\Core\State\StateInterface $state: The state keyvalue store.

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

Overrides CacheCollector::__construct

File

core/modules/path_alias/src/AliasWhitelist.php, line 43

Class

AliasWhitelist
Extends CacheCollector to build the path alias whitelist over time.

Namespace

Drupal\path_alias

Code

public function __construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, StateInterface $state, AliasRepositoryInterface $alias_repository) {
  parent::__construct($cid, $cache, $lock);
  $this->state = $state;
  $this->pathAliasRepository = $alias_repository;
}