public function ConfigContext::setOverrides

Implements \Drupal\Core\Config\Context\ContextInterface::setOverride().

Overrides ContextInterface::setOverrides

1 method overrides ConfigContext::setOverrides()
FreeConfigContext::setOverrides in drupal/core/lib/Drupal/Core/Config/Context/FreeConfigContext.php
Implements \Drupal\Core\Config\Context\ContextInterface::setOverride().

File

drupal/core/lib/Drupal/Core/Config/Context/ConfigContext.php, line 113
Contains \Drupal\Core\Config\Context\ConfigContext.

Class

ConfigContext
Defines the base configuration context object.

Namespace

Drupal\Core\Config\Context

Code

public function setOverrides($config_name, $data) {
  if (!isset($this->overrides[$config_name])) {
    $this->overrides[$config_name] = $data;
  }
  else {
    $this->overrides[$config_name] = NestedArray::mergeDeepArray(array(
      $this->overrides[$config_name],
      $data,
    ), TRUE);
  }
}