W3cubDocs

/Drupal 8

interface StorageInterface

Defines an interface for configuration storage.

Classes implementing this interface allow reading and writing configuration data from and to the storage.

Hierarchy

File

core/lib/Drupal/Core/Config/StorageInterface.php, line 11

Namespace

Drupal\Core\Config

Members

Name Modifiers Type Description
StorageInterface::createCollection public function Creates a collection on the storage.
StorageInterface::decode public function Decodes configuration data from the storage-specific format.
StorageInterface::DEFAULT_COLLECTION constant The default collection name.
StorageInterface::delete public function Deletes a configuration object from the storage.
StorageInterface::deleteAll public function Deletes configuration objects whose names start with a given prefix.
StorageInterface::encode public function Encodes configuration data into the storage-specific format.
StorageInterface::exists public function Returns whether a configuration object exists.
StorageInterface::getAllCollectionNames public function Gets the existing collections.
StorageInterface::getCollectionName public function Gets the name of the current collection the storage is using.
StorageInterface::listAll public function Gets configuration object names starting with a given prefix.
StorageInterface::read public function Reads configuration data from the storage.
StorageInterface::readMultiple public function Reads configuration data from the storage.
StorageInterface::rename public function Renames a configuration object in the storage.
StorageInterface::write public function Writes configuration data to the storage.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!StorageInterface.php/interface/StorageInterface/8.1.x