public static function BootstrapConfigStorageFactory::getDatabaseStorage

public static BootstrapConfigStorageFactory::getDatabaseStorage()

Returns a Database configuration storage implementation.

Return value

\Drupal\Core\Config\DatabaseStorage

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');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!BootstrapConfigStorageFactory.php/function/BootstrapConfigStorageFactory::getDatabaseStorage/8.1.x