public function Config::save

Saves the configuration object.

Return value

Drupal\Core\Config\Config The configuration object.

File

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

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function save() {

  // Validate the configuration object name before saving.
  static::validateName($this->name);
  if (!$this->isLoaded) {
    $this
      ->load();
  }
  $this->storage
    ->write($this->name, $this->data);
  $this->isNew = FALSE;
  $this
    ->notify('save');
  return $this;
}