function ConfigInstaller::getActiveStorages
Same name and namespace in other branches
- 11.x 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.
File
-
core/
lib/ Drupal/ Core/ Config/ ConfigInstaller.php, line 447
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.