function AliasPrefixList::__construct

Same name and namespace in other branches
  1. 11.x core/modules/path_alias/src/AliasPrefixList.php \Drupal\path_alias\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 $pathAliasRepository: The path alias repository.

Overrides CacheCollector::__construct

File

core/modules/path_alias/src/AliasPrefixList.php, line 29

Class

AliasPrefixList
Cache a list of valid alias prefixes.

Namespace

Drupal\path_alias

Code

public function __construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, protected StateInterface $state, protected AliasRepositoryInterface $pathAliasRepository) {
  parent::__construct($cid, $cache, $lock);
}

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