ConfigInstaller::getActiveStorages

protected ConfigInstaller::getActiveStorages($collection = StorageInterface::DEFAULT_COLLECTION)

Gets the configuration storage that provides the active configuration.

Parameters

string $collection: (optional) The configuration collection. Defaults to the default collection.

Return value

\Drupal\Core\Config\StorageInterface The configuration storage that provides the default configuration.

File

core/lib/Drupal/Core/Config/ConfigInstaller.php, line 377

Class

ConfigInstaller

Namespace

Drupal\Core\Config

Code

protected function getActiveStorages($collection = StorageInterface::DEFAULT_COLLECTION) {
  if (!isset($this->activeStorages[$collection])) {
    $this->activeStorages[$collection] = reset($this->activeStorages)->createCollection($collection);
  }
  return $this->activeStorages[$collection];
}
doc_Drupal
2016-10-29 08:53:53
Comments
Leave a Comment

Please login to continue.