function Config::setSettingsOverride
Same name in other branches
- 9 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::setSettingsOverride()
- 8.9.x core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::setSettingsOverride()
- 10 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::setSettingsOverride()
Sets settings.php overrides 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
$this The configuration object.
File
-
core/
lib/ Drupal/ Core/ Config/ Config.php, line 123
Class
- Config
- Defines the default configuration object.
Namespace
Drupal\Core\ConfigCode
public function setSettingsOverride(array $data) {
$this->settingsOverrides = $data;
$this->resetOverriddenData();
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.