1 config.inc | public Config::setData(array $data) |
Replaces the data of this configuration object.
Parameters
array $data: The new configuration data.
Return value
Config: The configuration object.
File
- core/
includes/ config.inc, line 839 - This is the API for configuration storage.
Class
- Config
- Defines the default configuration object.
Code
public function setData(array $data) {
$this->replaceData($data);
// A load would destroy the data just set (for example on import).
$this->isLoaded = TRUE;
return $this;
}