You are here

public function NormalizedReadOnlyStorage::__construct in Configuration Normalizer 8

Same name and namespace in other branches
  1. 2.0.x src/Config/NormalizedReadOnlyStorage.php \Drupal\config_normalizer\Config\NormalizedReadOnlyStorage::__construct()

Create a NormalizedReadOnlyStorage decorating another storage.

Parameters

\Drupal\Core\Config\StorageInterface $storage: The decorated storage.

\Drupal\config_normalizer\Plugin\ConfigNormalizerManager $normalizer_manager: The normalization manager.

array $context: (optional) An array of key-value pairs to pass additional context when needed.

File

src/Config/NormalizedReadOnlyStorage.php, line 47

Class

NormalizedReadOnlyStorage
Defines the normalized read only storage.

Namespace

Drupal\config_normalizer\Config

Code

public function __construct(StorageInterface $storage, ConfigNormalizerManager $normalizer_manager, array $context = []) {
  parent::__construct($storage);
  $this->normalizerManager = $normalizer_manager;
  $this->configItemNormalizer = new ConfigItemNormalizer($normalizer_manager, $context);
  $this
    ->setContext($context);
}