public function ConfigProviderBase::setActiveStorages in Configuration Provider 8.2
Same name and namespace in other branches
- 8 src/Plugin/ConfigProviderBase.php \Drupal\config_provider\Plugin\ConfigProviderBase::setActiveStorages()
Injects the active configuration storage.
Parameters
\Drupal\Core\Config\StorageInterface $storage: The configuration storage to read configuration from.
Overrides ConfigProviderInterface::setActiveStorages
File
- src/
Plugin/ ConfigProviderBase.php, line 78
Class
- ConfigProviderBase
- Base class for Configuration provider plugins.
Namespace
Drupal\config_provider\PluginCode
public function setActiveStorages(StorageInterface $active_storage) {
$this->activeStorages[$active_storage
->getCollectionName()] = $active_storage;
}