public function Config::load

Loads configuration data into this object.

Return value

Drupal\Core\Config\Config The configuration object.

File

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

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

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