public static function BootstrapConfigStorageFactory::get

Returns a configuration storage implementation.

Return value

\Drupal\Core\Config\StorageInterface A configuration storage implementation.

1 call to BootstrapConfigStorageFactory::get()
DrupalKernel::registerBundles in drupal/core/lib/Drupal/Core/DrupalKernel.php
Returns an array of available bundles.

File

drupal/core/lib/Drupal/Core/Config/BootstrapConfigStorageFactory.php, line 22
Contains Drupal\Core\Config\BootstrapConfigStorageFactory.

Class

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

Namespace

Drupal\Core\Config

Code

public static function get() {
  if (isset($GLOBALS['conf']['drupal_bootstrap_config_storage'])) {
    return call_user_func($GLOBALS['conf']['drupal_bootstrap_config_storage']);
  }
  else {
    return new FileStorage(config_get_config_directory(CONFIG_ACTIVE_DIRECTORY));
  }
}