You are here

protected function ConfigInstaller::getActiveStorages in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigInstaller.php \Drupal\Core\Config\ConfigInstaller::getActiveStorages()

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.

5 calls to ConfigInstaller::getActiveStorages()
ConfigInstaller::createConfiguration in core/lib/Drupal/Core/Config/ConfigInstaller.php
Creates configuration in a collection based on the provided list.
ConfigInstaller::findPreExistingConfiguration in core/lib/Drupal/Core/Config/ConfigInstaller.php
Finds pre-existing configuration objects for the provided extension.
ConfigInstaller::installCollectionDefaultConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
Installs all default configuration in the specified collection.
ConfigInstaller::installDefaultConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
Installs the default configuration of a given extension.
ConfigInstaller::installOptionalConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
Installs optional configuration.

File

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

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];
}