DatabaseStorage::doWrite

protected DatabaseStorage::doWrite($name, $data) Helper method so we can re-try a write. Parameters string $name: The config name. string $data: The config data, already dumped to a string. Return value bool File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 145 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code protected function doWrite($name, $data) { $options = array('return' => Database::RETURN_AFFECTED) + $this->options; retu

DatabaseStorage::deleteMultiple

public DatabaseStorage::deleteMultiple(array $keys) Deletes multiple items from the key/value store. Parameters array $keys: A list of item names to delete. Overrides KeyValueStoreInterface::deleteMultiple File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 149 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function deleteMultiple(array $keys) { // Delete in chunks when a large array is passed.

DatabaseStorage::deleteAll

public DatabaseStorage::deleteAll() Deletes all items from the key/value store. Overrides KeyValueStoreInterface::deleteAll File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 162 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function deleteAll() { $this->connection->delete($this->table) ->condition('collection', $this->collection) ->execute(); }

DatabaseStorage::deleteAll

public DatabaseStorage::deleteAll($prefix = '') Deletes configuration objects whose names start with a given prefix. Given the following configuration object names: node.type.article node.type.page Passing the prefix 'node.type.' will delete the above configuration objects. Parameters string $prefix: (optional) The prefix to search for. If omitted, all configuration objects that exist will be deleted. Return value bool TRUE on success, FALSE otherwise. Overrides StorageInterface::deleteAll

DatabaseStorage::delete

public DatabaseStorage::delete($name) Implements Drupal\Core\Config\StorageInterface::delete(). @todo Ignore replica targets for data manipulation operations. Throws PDOException Overrides StorageInterface::delete File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 221 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code public function delete($name) { $options = array('return' => Database::RETURN_AFFECTED) + $this->options; return (bo

DatabaseStorage::decode

public DatabaseStorage::decode($raw) Implements Drupal\Core\Config\StorageInterface::decode(). Throws ErrorException The unserialize() call will trigger E_NOTICE if the string cannot be unserialized. Overrides StorageInterface::decode File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 258 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code public function decode($raw) { $data = @unserialize($raw); return is_array($data) ? $data : FALSE; }

DatabaseStorage::createCollection

public DatabaseStorage::createCollection($collection) Creates a collection on the storage. A configuration storage can contain multiple sets of configuration objects in partitioned collections. The collection name identifies the current collection used. Implementations of this method must provide a new instance to avoid side effects caused by the fact that Config objects have their storage injected. Parameters string $collection: The collection name. Valid collection names conform to the follo

DatabaseStorage::$table

The name of the SQL table to use. Type: string File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 39 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code protected $table;

DatabaseStorage::$table

The database table name. Type: string File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 28 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code protected $table;

DatabaseStorage::$serializer

The serialization class to use. Type: \Drupal\Component\Serialization\SerializationInterface File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 25 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code protected $serializer;