Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
7.69% |
1 / 13 |
CRAP | |
7.69% |
1 / 13 |
| NullStorage | |
0.00% |
0 / 1 |
|
7.69% |
1 / 13 |
145.92 | |
7.69% |
1 / 13 |
| exists | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| read | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| readMultiple | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| write | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| delete | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| rename | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| encode | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| decode | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| listAll | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| deleteAll | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| createCollection | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getAllCollectionNames | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| getCollectionName | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\Core\Config\NullStorage. | |
| */ | |
| namespace Drupal\Core\Config; | |
| /** | |
| * Defines a stub storage. | |
| * | |
| * This storage is always empty; the controller reads and writes nothing. | |
| * | |
| * The stub implementation is needed for synchronizing configuration during | |
| * installation of a module, in which case all configuration being shipped with | |
| * the module is known to be new. Therefore, the module installation process is | |
| * able to short-circuit the full diff against the active configuration; the | |
| * diff would yield all currently available configuration as items to remove, | |
| * since they do not exist in the module's default configuration directory. | |
| * | |
| * This also can be used for testing purposes. | |
| */ | |
| class NullStorage implements StorageInterface { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function exists($name) { | |
| return FALSE; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function read($name) { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function readMultiple(array $names) { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function write($name, array $data) { | |
| return FALSE; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function delete($name) { | |
| return FALSE; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function rename($name, $new_name) { | |
| return FALSE; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function encode($data) { | |
| return $data; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function decode($raw) { | |
| return $raw; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function listAll($prefix = '') { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function deleteAll($prefix = '') { | |
| return FALSE; | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function createCollection($collection) { | |
| // No op. | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getAllCollectionNames() { | |
| return array(); | |
| } | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getCollectionName() { | |
| return ''; | |
| } | |
| } |