public function Config::load

Loads configuration data into this object.

Return value

Drupal\Core\Config\Config The configuration object.

6 calls to Config::load()
Config::clear in drupal/core/lib/Drupal/Core/Config/Config.php
Unsets value in this config object.
Config::get in drupal/core/lib/Drupal/Core/Config/Config.php
Gets data from this config object.
Config::isNew in drupal/core/lib/Drupal/Core/Config/Config.php
Returns whether this configuration object is new.
Config::merge in drupal/core/lib/Drupal/Core/Config/Config.php
Merges data into a configuration object.
Config::save in drupal/core/lib/Drupal/Core/Config/Config.php
Saves the configuration object.

... See full list

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;
}