DatabaseStorage::read

public DatabaseStorage::read($name) Reads configuration data from the storage. Parameters string $name: The name of a configuration object to load. Return value array|bool The configuration data stored for the configuration object name. If no configuration data exists for the given name, FALSE is returned. Overrides StorageInterface::read File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 84 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code

DatabaseStorage::listAll

public DatabaseStorage::listAll($prefix = '') Gets configuration object names starting with a given prefix. Given the following configuration objects: node.type.article node.type.page Passing the prefix 'node.type.' will return an array containing the above names. Parameters string $prefix: (optional) The prefix to search for. If omitted, all configuration object names that exist are returned. Return value array An array containing matching configuration object names. Overrides StorageInter

DatabaseStorage::has

public DatabaseStorage::has($key) Returns whether a given key exists in the store. Parameters string $key: The key to check. Return value bool TRUE if the key exists, FALSE otherwise. Overrides KeyValueStoreInterface::has File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 63 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function has($key) { return (bool) $this->connection->query('SELECT 1

DatabaseStorage::getMultiple

public DatabaseStorage::getMultiple(array $keys) Returns the stored key/value pairs for a given set of keys. @todo What's returned for non-existing keys? Parameters array $keys: A list of keys to retrieve. Return value array An associative array of items successfully returned, indexed by key. Overrides KeyValueStoreInterface::getMultiple File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 73 Class DatabaseStorage Defines a default key/value store implementation. Namespace

DatabaseStorage::getCollectionName

public DatabaseStorage::getCollectionName() Gets the name of the current collection the storage is using. Return value string The current collection name. Overrides StorageInterface::getCollectionName File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 311 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code public function getCollectionName() { return $this->collection; }

DatabaseStorage::getAllCollectionNames

public DatabaseStorage::getAllCollectionNames() Gets the existing collections. A configuration storage can contain multiple sets of configuration objects in partitioned collections. The collection key name identifies the current collection used. Return value array An array of existing collection names. Overrides StorageInterface::getAllCollectionNames File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 318 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core

DatabaseStorage::getAll

public DatabaseStorage::getAll() Returns all stored key/value pairs in the collection. Return value array An associative array containing all stored items in the collection. Overrides KeyValueStoreInterface::getAll File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 94 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function getAll() { $result = $this->connection->query('SELECT name, value FR

DatabaseStorage::exists

public DatabaseStorage::exists($name) Returns whether a configuration object exists. Parameters string $name: The name of a configuration object to test. Return value bool TRUE if the configuration object exists, FALSE otherwise. Overrides StorageInterface::exists File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 67 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code public function exists($name) { try { return (bool) $this->connect

DatabaseStorage::ensureTableExists

protected DatabaseStorage::ensureTableExists() Check if the config table exists and create it if not. Return value bool TRUE if the table was created, FALSE otherwise. Throws \Drupal\Core\Config\StorageException If a database error occurs. File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 162 Class DatabaseStorage Defines the Database storage. Namespace Drupal\Core\Config Code protected function ensureTableExists() { try { if (!$this->connection->schema()->tab

DatabaseStorage::encode

public DatabaseStorage::encode($data) Encodes configuration data into the storage-specific format. This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests. Parameters array $data: The configuration data to encode. Return value string The encoded configuration data. Overrides StorageInterface::encode File core/lib/Drupal/Core/Config/DatabaseStorage.php, line 247 Class DatabaseStorage Defines the Database storage. Namespace D