StorageReplaceDataWrapper::createCollection

public StorageReplaceDataWrapper::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

StorageReplaceDataWrapper::delete

public StorageReplaceDataWrapper::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/modules/config/src/StorageReplaceDataWrapper.php, line 93 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configuration data. Namespace Drupal\config Code public function delete($na

StorageReplaceDataWrapper::encode

public StorageReplaceDataWrapper::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/modules/config/src/StorageReplaceDataWrapper.php, line 114 Class StorageReplaceDataWrapper Wraps a configurat

StorageReplaceDataWrapper::deleteAll

public StorageReplaceDataWrapper::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::

StorageReplaceDataWrapper::exists

public StorageReplaceDataWrapper::exists($name) Returns whether a configuration object exists. Parameters string $name: The name of a configuration object to test. Return value bool TRUE if the configuration object exists, FALSE otherwise. Overrides StorageInterface::exists File core/modules/config/src/StorageReplaceDataWrapper.php, line 53 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configuration data. Namespace Drupal\config Code public

StorageReplaceDataWrapper::$storage

The configuration storage to be wrapped. Type: \Drupal\Core\Config\StorageInterface File core/modules/config/src/StorageReplaceDataWrapper.php, line 19 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configuration data. Namespace Drupal\config Code protected $storage;

StorageReplaceDataWrapper

Wraps a configuration storage to allow replacing specific configuration data. Hierarchy class \Drupal\config\StorageReplaceDataWrapper implements StorageInterface uses DependencySerializationTrait File core/modules/config/src/StorageReplaceDataWrapper.php, line 11 Namespace Drupal\config Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization. DependencyS

StorageReplaceDataWrapper::$replacementData

The configuration replacement data, keyed by configuration object name. Type: array File core/modules/config/src/StorageReplaceDataWrapper.php, line 26 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configuration data. Namespace Drupal\config Code protected $replacementData = [];

StorageReplaceDataWrapper::$collection

The storage collection. Type: string File core/modules/config/src/StorageReplaceDataWrapper.php, line 33 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configuration data. Namespace Drupal\config Code protected $collection;

StorageInterface::write

public StorageInterface::write($name, array $data) Writes configuration data to the storage. Parameters string $name: The name of a configuration object to save. array $data: The configuration data to write. Return value bool TRUE on success, FALSE in case of an error. Throws \Drupal\Core\Config\StorageException If the back-end storage does not exist and cannot be created. File core/lib/Drupal/Core/Config/StorageInterface.php, line 67 Class StorageInterface Defines an interface for conf