public function Config::setOverride

Sets overridden data for this configuration object.

The overridden data only applies to this configuration object.

Parameters

array $data: The overridden values of the configuration data.

Return value

Drupal\Core\Config\Config The configuration object.

File

drupal/core/lib/Drupal/Core/Config/Config.php, line 270
Definition of Drupal\Core\Config\Config.

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function setOverride(array $data) {
  $this->context
    ->setOverrides($this
    ->getName(), $data);
  $this
    ->resetOverriddenData();
  return $this;
}