CachedStorage::__construct

public CachedStorage::__construct(StorageInterface $storage, CacheBackendInterface $cache)

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

1
2
3
4
public function __construct(StorageInterface $storage, CacheBackendInterface $cache) {
  $this->storage = $storage;
  $this->cache = $cache;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.