StorageBase::delete

public StorageBase::delete($key) Deletes an item from the key/value store. Parameters string $key: The item name to delete. Overrides KeyValueStoreInterface::delete File core/lib/Drupal/Core/KeyValueStore/StorageBase.php, line 51 Class StorageBase Provides a base class for key/value storage implementations. Namespace Drupal\Core\KeyValueStore Code public function delete($key) { $this->deleteMultiple(array($key)); }

StorageBase::setMultiple

public StorageBase::setMultiple(array $data) Saves key/value pairs. Parameters array $data: An associative array of key/value pairs. Overrides KeyValueStoreInterface::setMultiple File core/lib/Drupal/Core/KeyValueStore/StorageBase.php, line 42 Class StorageBase Provides a base class for key/value storage implementations. Namespace Drupal\Core\KeyValueStore Code public function setMultiple(array $data) { foreach ($data as $key => $value) { $this->set($key, $value); } }

StorageBase::get

public StorageBase::get($key, $default = NULL) Returns the stored value for a given key. Parameters string $key: The key of the data to retrieve. mixed $default: The default value to use if the key is not found. Return value mixed The stored value, or the default value if no value exists. Overrides KeyValueStoreInterface::get File core/lib/Drupal/Core/KeyValueStore/StorageBase.php, line 34 Class StorageBase Provides a base class for key/value storage implementations. Namespace Drupal\

StorageCacheInterface

Defines an interface for cached configuration storage. Hierarchy interface \Drupal\Core\Config\StorageCacheInterface File core/lib/Drupal/Core/Config/StorageCacheInterface.php, line 8 Namespace Drupal\Core\Config Members Name Modifiers Type Description StorageCacheInterface::resetListCache public function Reset the static cache of the listAll() cache.

StorageBase

Provides a base class for key/value storage implementations. Hierarchy class \Drupal\Core\KeyValueStore\StorageBase implements KeyValueStoreInterface File core/lib/Drupal/Core/KeyValueStore/StorageBase.php, line 8 Namespace Drupal\Core\KeyValueStore Members Name Modifiers Type Description KeyValueStoreInterface::deleteAll public function Deletes all items from the key/value store. KeyValueStoreInterface::deleteMultiple public function Deletes multiple items from

StorageBase::$collection

The name of the collection holding key and value pairs. Type: string File core/lib/Drupal/Core/KeyValueStore/StorageBase.php, line 15 Class StorageBase Provides a base class for key/value storage implementations. Namespace Drupal\Core\KeyValueStore Code protected $collection;

StorableConfigBase::save

abstract public StorableConfigBase::save($has_trusted_data = FALSE) Saves the configuration object. Must invalidate the cache tags associated with the configuration object. Parameters bool $has_trusted_data: Set to TRUE if the configuration data has already been checked to ensure it conforms to schema. Generally this is only used during module and theme installation. Return value $this See also \Drupal\Core\Config\ConfigInstaller::createConfiguration() File core/lib/Drupal/Core/Config/Storab

StorableConfigBase::validateValue

protected StorableConfigBase::validateValue($key, $value) Validate the values are allowed data types. Parameters string $key: A string that maps to a key within the configuration data. string $value: Value to associate with the key. Return value null Throws \Drupal\Core\Config\UnsupportedDataTypeConfigException If the value is unsupported in configuration. File core/lib/Drupal/Core/Config/StorableConfigBase.php, line 152 Class StorableConfigBase Provides a base class for configuration o

StorableConfigBase::initWithData

public StorableConfigBase::initWithData(array $data) Initializes a configuration object with pre-loaded data. Parameters array $data: Array of loaded data for this configuration object. Return value $this The configuration object. File core/lib/Drupal/Core/Config/StorableConfigBase.php, line 94 Class StorableConfigBase Provides a base class for configuration objects with storage support. Namespace Drupal\Core\Config Code public function initWithData(array $data) { $this->isNew =

StorableConfigBase::delete

abstract public StorableConfigBase::delete() Deletes the configuration object. Must invalidate the cache tags associated with the configuration object. Return value $this File core/lib/Drupal/Core/Config/StorableConfigBase.php, line 83 Class StorableConfigBase Provides a base class for configuration objects with storage support. Namespace Drupal\Core\Config Code abstract public function delete();