function AliasPrefixList::__construct

Constructs an AliasPrefixList 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/AliasPrefixList.php, line 43

Class

AliasPrefixList
Cache a list of valid alias prefixes.

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

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