1 config.inc public Config::load()

Loads configuration data into this object.

Return value

Config: The configuration object.

File

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

Class

Config
Defines the default configuration object.

Code

public function load() {
  $this->isLoaded = FALSE;
  $data = $this->storage->read($this->name);
  if ($data === FALSE) {
    $this->isNew = TRUE;
    $this->replaceData(array());
  }
  else {
    $this->isNew = FALSE;
    $this->replaceData($data);
  }
  $this->isLoaded = TRUE;
  return $this;
}