class GhostStorage in Configuration Split 8
Class GhostStorage.
A GhostStorage acts like the normal Storage it wraps. All reading operations return the values of the decorated storage but write operations are silently ignored and the ghost pretends that the operation was successful.
@package Drupal\config_split\Config
Hierarchy
- class \Drupal\config_split\Config\GhostStorage extends \Drupal\config_filter\Config\ReadOnlyStorage implements StorageInterface
Expanded class hierarchy of GhostStorage
2 files declare their use of GhostStorage
- ConfigSplitCliService.php in src/
ConfigSplitCliService.php - GhostStorageTest.php in src/
Tests/ GhostStorageTest.php
File
- src/
Config/ GhostStorage.php, line 17
Namespace
Drupal\config_split\ConfigView source
class GhostStorage extends ReadOnlyStorage implements StorageInterface {
/**
* {@inheritdoc}
*/
public function write($name, array $data) {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function delete($name) {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function rename($name, $new_name) {
return TRUE;
}
/**
* {@inheritdoc}
*/
public function deleteAll($prefix = '') {
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GhostStorage:: |
public | function |
Deletes a configuration object from the storage. Overrides StorageInterface:: |
|
GhostStorage:: |
public | function |
Deletes configuration objects whose names start with a given prefix. Overrides StorageInterface:: |
|
GhostStorage:: |
public | function |
Renames a configuration object in the storage. Overrides StorageInterface:: |
|
GhostStorage:: |
public | function |
Writes configuration data to the storage. Overrides StorageInterface:: |
|
StorageInterface:: |
public | function | Creates a collection on the storage. | 8 |
StorageInterface:: |
public | function | Decodes configuration data from the storage-specific format. | 8 |
StorageInterface:: |
constant | The default collection name. | ||
StorageInterface:: |
public | function | Encodes configuration data into the storage-specific format. | 8 |
StorageInterface:: |
public | function | Returns whether a configuration object exists. | 8 |
StorageInterface:: |
public | function | Gets the existing collections. | 8 |
StorageInterface:: |
public | function | Gets the name of the current collection the storage is using. | 8 |
StorageInterface:: |
public | function | Gets configuration object names starting with a given prefix. | 8 |
StorageInterface:: |
public | function | Reads configuration data from the storage. | 8 |
StorageInterface:: |
public | function | Reads configuration data from the storage. | 8 |