protected function ConfigProviderBase::getActiveStorages in Configuration Provider 8.2
Same name and namespace in other branches
- 8 src/Plugin/ConfigProviderBase.php \Drupal\config_provider\Plugin\ConfigProviderBase::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.
1 call to ConfigProviderBase::getActiveStorages()
- ConfigProviderBase::getExtensionInstallStorage in src/
Plugin/ ConfigProviderBase.php - Gets the storage for a designated configuration provider.
File
- src/
Plugin/ ConfigProviderBase.php, line 129
Class
- ConfigProviderBase
- Base class for Configuration provider plugins.
Namespace
Drupal\config_provider\PluginCode
protected function getActiveStorages($collection = StorageInterface::DEFAULT_COLLECTION) {
if (!isset($this->activeStorages[$collection])) {
$this->activeStorages[$collection] = reset($this->activeStorages)
->createCollection($collection);
}
return $this->activeStorages[$collection];
}