function ConfigInstaller::getActiveStorages
Same name in other branches
- 9 core/lib/Drupal/Core/Config/ConfigInstaller.php \Drupal\Core\Config\ConfigInstaller::getActiveStorages()
- 8.9.x core/lib/Drupal/Core/Config/ConfigInstaller.php \Drupal\Core\Config\ConfigInstaller::getActiveStorages()
- 10 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 444
Class
Namespace
Drupal\Core\ConfigCode
protected function getActiveStorages($collection = StorageInterface::DEFAULT_COLLECTION) {
if (!isset($this->activeStorages[$collection])) {
$this->activeStorages[$collection] = reset($this->activeStorages)
->createCollection($collection);
}
return $this->activeStorages[$collection];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.