public function Config::load

Loads configuration data into this object.

Return value

Drupal\Core\Config\Config The configuration object.

6 calls to Config::load()

File

drupal/core/lib/Drupal/Core/Config/Config.php, line 408
Definition of Drupal\Core\Config\Config.

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

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
    ->notify('load');
  $this->isLoaded = TRUE;
  return $this;
}