AliasWhitelist::__construct

public AliasWhitelist::__construct($cid, CacheBackendInterface $cache, LockBackendInterface $lock, StateInterface $state, AliasStorageInterface $alias_storage)

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 43

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;
}
doc_Drupal
2016-10-29 08:44:21
Comments
Leave a Comment

Please login to continue.