abstract class StorageBase

Provides a base class for key/value storage implementations.

Hierarchy

Expanded class hierarchy of StorageBase

File

drupal/core/lib/Drupal/Core/KeyValueStore/StorageBase.php, line 13
Contains Drupal\Core\KeyValueStore\StorageBase.

Namespace

Drupal\Core\KeyValueStore
View source

Members

Namesort descending Modifiers Type Description Overrides
KeyValueStoreInterface::deleteMultiple public function Deletes multiple items from the key/value store. 2
KeyValueStoreInterface::getAll public function Returns all stored key/value pairs in the collection. 2
KeyValueStoreInterface::getMultiple public function Returns the stored key/value pairs for a given set of keys. 2
KeyValueStoreInterface::set public function Saves a value for a given key. 2
KeyValueStoreInterface::setIfNotExists public function Saves a value for a given key if it does not exist yet. 2
StorageBase::$collection protected property The name of the collection holding key and value pairs.
StorageBase::delete public function Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::delete(). Overrides KeyValueStoreInterface::delete 1
StorageBase::get public function Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::get(). Overrides KeyValueStoreInterface::get 1
StorageBase::getCollectionName public function Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::getCollectionName(). Overrides KeyValueStoreInterface::getCollectionName
StorageBase::setMultiple public function Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::setMultiple(). Overrides KeyValueStoreInterface::setMultiple 1
StorageBase::__construct public function Implements Drupal\Core\KeyValueStore\KeyValueStoreInterface::__construct(). 1