StorageReplaceDataWrapper::replaceData

public StorageReplaceDataWrapper::replaceData($name, array $data) Replaces the configuration object data with the supplied data. Parameters $name: The configuration object name whose data to replace. array $data: The configuration data. Return value $this File core/modules/config/src/StorageReplaceDataWrapper.php, line 198 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configuration data. Namespace Drupal\config Code public function replaceD

StorageReplaceDataWrapper::write

public StorageReplaceDataWrapper::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. Overrides StorageInterface::write File core/modules/config/src/StorageReplaceDataWrapper.php, line 83 Class

StorageReplaceDataWrapper::__construct

public StorageReplaceDataWrapper::__construct(StorageInterface $storage, $collection = StorageInterface::DEFAULT_COLLECTION) Constructs a new StorageReplaceDataWrapper. Parameters \Drupal\Core\Config\StorageInterface $storage: A configuration storage to be used to read and write configuration. string $collection: (optional) The collection to store configuration in. Defaults to the default collection. File core/modules/config/src/StorageReplaceDataWrapper.php, line 44 Class StorageReplaceDa

StorageReplaceDataWrapper::listAll

public StorageReplaceDataWrapper::listAll($prefix = '') Gets 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: (optional) The prefix to search for. If omitted, all configuration object names that exist are returned. Return value array An array containing matching configuration object names. Overrides St

StorageReplaceDataWrapper::read

public StorageReplaceDataWrapper::read($name) Reads configuration data from the storage. Parameters string $name: The name of a configuration object to load. Return value array|bool The configuration data stored for the configuration object name. If no configuration data exists for the given name, FALSE is returned. Overrides StorageInterface::read File core/modules/config/src/StorageReplaceDataWrapper.php, line 60 Class StorageReplaceDataWrapper Wraps a configuration storage to allow re

StorageReplaceDataWrapper::readMultiple

public StorageReplaceDataWrapper::readMultiple(array $names) Reads configuration data from the storage. Parameters array $names: List of names of the configuration objects to load. Return value array A list of the configuration data stored for the configuration object name that could be loaded for the passed list of names. Overrides StorageInterface::readMultiple File core/modules/config/src/StorageReplaceDataWrapper.php, line 70 Class StorageReplaceDataWrapper Wraps a configuration stor

StorageReplaceDataWrapper::rename

public StorageReplaceDataWrapper::rename($name, $new_name) Renames a configuration object in the storage. Parameters string $name: The name of a configuration object to rename. string $new_name: The new name of a configuration object. Return value bool TRUE on success, FALSE otherwise. Overrides StorageInterface::rename File core/modules/config/src/StorageReplaceDataWrapper.php, line 103 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configurati

StorageReplaceDataWrapper::getAllCollectionNames

public StorageReplaceDataWrapper::getAllCollectionNames() Gets the existing collections. A configuration storage can contain multiple sets of configuration objects in partitioned collections. The collection key name identifies the current collection used. Return value array An array of existing collection names. Overrides StorageInterface::getAllCollectionNames File core/modules/config/src/StorageReplaceDataWrapper.php, line 177 Class StorageReplaceDataWrapper Wraps a configuration storag

StorageReplaceDataWrapper::getCollectionName

public StorageReplaceDataWrapper::getCollectionName() Gets the name of the current collection the storage is using. Return value string The current collection name. Overrides StorageInterface::getCollectionName File core/modules/config/src/StorageReplaceDataWrapper.php, line 184 Class StorageReplaceDataWrapper Wraps a configuration storage to allow replacing specific configuration data. Namespace Drupal\config Code public function getCollectionName() { return $this->collection; }

StorageReplaceDataWrapper::decode

public StorageReplaceDataWrapper::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/modules/config/src/StorageReplaceDataWrapper.php, line 121 Class StorageRepla