You are here

public static function BootstrapConfigStorageFactory::getDatabaseStorage in Drupal 8

Same name and namespace in other branches
  1. 9 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');
}