You are here

public function ConfigProviderBase::setActiveStorages in Configuration Provider 8

Same name and namespace in other branches
  1. 8.2 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 61

Class

ConfigProviderBase
Base class for Configuration provider plugins.

Namespace

Drupal\config_provider\Plugin

Code

public function setActiveStorages(StorageInterface $active_storage) {
  $this->activeStorages[$active_storage
    ->getCollectionName()] = $active_storage;
}