function Config::setModuleOverride

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::setModuleOverride()
  2. 10 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::setModuleOverride()
  3. 11.x core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::setModuleOverride()

Sets module overrides for this configuration object.

Parameters

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

Return value

$this The configuration object.

File

core/lib/Drupal/Core/Config/Config.php, line 138

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function setModuleOverride(array $data) {
    $this->moduleOverrides = $data;
    $this->resetOverriddenData();
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.