You are here

public function NormalizedReadOnlyStorageInterface::setContext in Configuration Normalizer 8

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

Sets the context to be used for normalization.

If not given, values are defaulted to those in ::DEFAULT_CONTEXT.

Parameters

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

1 method overrides NormalizedReadOnlyStorageInterface::setContext()
NormalizedReadOnlyStorage::setContext in src/Config/NormalizedReadOnlyStorage.php
Sets the context to be used for normalization.

File

src/Config/NormalizedReadOnlyStorageInterface.php, line 72

Class

NormalizedReadOnlyStorageInterface
Interface for a normalized read only storage.

Namespace

Drupal\config_normalizer\Config

Code

public function setContext(array $context = []);