public function Config::delete

Deletes the configuration object.

Return value

Drupal\Core\Config\Config The configuration object.

File

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

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function delete() {

  // @todo Consider to remove the pruning of data for Config::delete().
  $this->data = array();
  $this->storage
    ->delete($this->name);
  $this->isNew = TRUE;
  $this
    ->resetOverriddenData();
  $this
    ->notify('delete');
  return $this;
}