function BootstrapConfigStorageFactory::getDatabaseStorage

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php \Drupal\Core\Config\BootstrapConfigStorageFactory::getDatabaseStorage()
  2. 10 core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php \Drupal\Core\Config\BootstrapConfigStorageFactory::getDatabaseStorage()
  3. 11.x core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php \Drupal\Core\Config\BootstrapConfigStorageFactory::getDatabaseStorage()

Returns a Database configuration storage implementation.

Return value

\Drupal\Core\Config\DatabaseStorage

1 call to BootstrapConfigStorageFactory::getDatabaseStorage()
BootstrapConfigStorageFactory::get in core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php
Returns a configuration storage implementation.

File

core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php, line 39

Class

BootstrapConfigStorageFactory
Defines a factory for retrieving the config storage used pre-kernel.

Namespace

Drupal\Core\Config

Code

public static function getDatabaseStorage() {
    return new DatabaseStorage(Database::getConnection(), 'config');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.