1 config.inc | public Config::initWithData(array $data) |
Initializes a configuration object with pre-loaded data.
Parameters
array $data: Array of loaded data for this configuration object.
Return value
Config: The configuration object.
File
- core/
includes/ config.inc, line 509 - This is the API for configuration storage.
Class
- Config
- Defines the default configuration object.
Code
public function initWithData(array $data) {
$this->isLoaded = TRUE;
$this->isNew = FALSE;
$this->replaceData($data);
return $this;
}