CachedStorage::findByPrefix

protected CachedStorage::findByPrefix($prefix) Finds configuration object names starting with a given prefix. Given the following configuration objects: node.type.article node.type.page Passing the prefix 'node.type.' will return an array containing the above names. Parameters string $prefix: The prefix to search for Return value array An array containing matching configuration object names. File core/lib/Drupal/Core/Config/CachedStorage.php, line 204 Class CachedStorage Defines the ca

CachedStorage::decode

public CachedStorage::decode($raw) Decodes configuration data from the storage-specific format. This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests. Parameters string $raw: The raw configuration data string to decode. Return value array The decoded configuration data as an associative array. Overrides StorageInterface::decode File core/lib/Drupal/Core/Config/CachedStorage.php, line 173 Class CachedStorage Defines the cache

CachedStorage::encode

public CachedStorage::encode($data) Encodes configuration data into the storage-specific format. This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests. Parameters array $data: The configuration data to encode. Return value string The encoded configuration data. Overrides StorageInterface::encode File core/lib/Drupal/Core/Config/CachedStorage.php, line 166 Class CachedStorage Defines the cached storage. Namespace Drupal\Co

CachedStorage::createCollection

public CachedStorage::createCollection($collection) Creates a collection on the storage. A configuration storage can contain multiple sets of configuration objects in partitioned collections. The collection name identifies the current collection used. Implementations of this method must provide a new instance to avoid side effects caused by the fact that Config objects have their storage injected. Parameters string $collection: The collection name. Valid collection names conform to the followi

CachedStorage::deleteAll

public CachedStorage::deleteAll($prefix = '') Deletes configuration objects whose names start with a given prefix. Given the following configuration object names: node.type.article node.type.page Passing the prefix 'node.type.' will delete the above configuration objects. Parameters string $prefix: (optional) The prefix to search for. If omitted, all configuration objects that exist will be deleted. Return value bool TRUE on success, FALSE otherwise. Overrides StorageInterface::deleteAll Fi

CachedStorage::delete

public CachedStorage::delete($name) Deletes a configuration object from the storage. Parameters string $name: The name of a configuration object to delete. Return value bool TRUE on success, FALSE otherwise. Overrides StorageInterface::delete File core/lib/Drupal/Core/Config/CachedStorage.php, line 137 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code public function delete($name) { // If the cache was the first to be deleted, another process might s

CachedStorage::$findByPrefixCache

List of listAll() prefixes with their results. Type: array File core/lib/Drupal/Core/Config/CachedStorage.php, line 37 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code protected $findByPrefixCache = array();

CachedStorage::$storage

The configuration storage to be cached. Type: \Drupal\Core\Config\StorageInterface File core/lib/Drupal/Core/Config/CachedStorage.php, line 23 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code protected $storage;

CachedStorage::$cache

The instantiated Cache backend. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Config/CachedStorage.php, line 30 Class CachedStorage Defines the cached storage. Namespace Drupal\Core\Config Code protected $cache;

CachedStorage

Defines the cached storage. The class gets another storage and a cache backend injected. It reads from the cache and delegates the read to the storage on a cache miss. It also handles cache invalidation. Hierarchy class \Drupal\Core\Config\CachedStorage implements StorageCacheInterface, StorageInterface uses DependencySerializationTrait File core/lib/Drupal/Core/Config/CachedStorage.php, line 15 Namespace Drupal\Core\Config Members Name Modifiers Type Description CachedStorage