DrupalKernel::getConfigStorage

protected DrupalKernel::getConfigStorage()

Returns the active configuration storage to use during building the container.

Return value

\Drupal\Core\Config\StorageInterface

File

core/lib/Drupal/Core/DrupalKernel.php, line 1328

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

protected function getConfigStorage() {
  if (!isset($this->configStorage)) {
    // The active configuration storage may not exist yet; e.g., in the early
    // installer. Catch the exception thrown by config_get_config_directory().
    try {
      $this->configStorage = BootstrapConfigStorageFactory::get($this->classLoader);
    }
    catch (\Exception $e) {
      $this->configStorage = new NullStorage();
    }
  }
  return $this->configStorage;
}
doc_Drupal
2016-10-29 09:03:00
Comments
Leave a Comment

Please login to continue.