function CachedStorage::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::__construct()
  2. 10 core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::__construct()
  3. 11.x core/lib/Drupal/Core/Config/CachedStorage.php \Drupal\Core\Config\CachedStorage::__construct()

Constructs a new CachedStorage.

Parameters

\Drupal\Core\Config\StorageInterface $storage: A configuration storage to be cached.

\Drupal\Core\Cache\CacheBackendInterface $cache: A cache backend used to store configuration.

File

core/lib/Drupal/Core/Config/CachedStorage.php, line 47

Class

CachedStorage
Defines the cached storage.

Namespace

Drupal\Core\Config

Code

public function __construct(StorageInterface $storage, CacheBackendInterface $cache) {
    $this->storage = $storage;
    $this->cache = $cache;
}

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