You are here

public function AliasWhitelist::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Path/AliasWhitelist.php \Drupal\Core\Path\AliasWhitelist::__construct()

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\Core\Path\AliasStorageInterface $alias_storage: The alias storage service.

Overrides CacheCollector::__construct

File

core/lib/Drupal/Core/Path/AliasWhitelist.php, line 48
Contains \Drupal\Core\Path\AliasWhitelist.

Class

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

Namespace

Drupal\Core\Path

Code

public function __construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, StateInterface $state, AliasStorageInterface $alias_storage) {
  parent::__construct($cid, $cache, $lock);
  $this->state = $state;
  $this->aliasStorage = $alias_storage;
}