1.20.x config.inc protected Config::replaceData(array $data)

Replaces the data of this configuration object.

This function is separate from setData() to avoid load() state tracking. A load() would destroy the replaced data (for example on import). Do not call set() when inside load().

Parameters

array $data: The new configuration data.

Return value

Config: The configuration object.

File

includes/config.inc, line 863
This is the API for configuration storage.

Class

Config
Defines the default configuration object.

Code

protected function replaceData(array $data) {
  $this->data = $data;
  $this->validated = FALSE;
  return $this;
}