You are here

protected function ConfigInstaller::getActiveStorages in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 364
Contains \Drupal\Core\Config\ConfigInstaller.

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