3 namespace Drupal\Core\Config;
6 * Defines a stub storage.
8 * This storage is always empty; the controller reads and writes nothing.
10 * The stub implementation is needed for synchronizing configuration during
11 * installation of a module, in which case all configuration being shipped with
12 * the module is known to be new. Therefore, the module installation process is
13 * able to short-circuit the full diff against the active configuration; the
14 * diff would yield all currently available configuration as items to remove,
15 * since they do not exist in the module's default configuration directory.
17 * This also can be used for testing purposes.
19 class NullStorage implements StorageInterface {
24 public function exists($name) {
31 public function read($name) {
38 public function readMultiple(array $names) {
45 public function write($name, array $data) {
52 public function delete($name) {
59 public function rename($name, $new_name) {
66 public function encode($data) {
73 public function decode($raw) {
80 public function listAll($prefix = '') {
87 public function deleteAll($prefix = '') {
94 public function createCollection($collection) {
101 public function getAllCollectionNames() {
108 public function getCollectionName() {