You are here

public function Config::delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::delete()

Deletes the configuration object.

Return value

\Drupal\Core\Config\Config The configuration object.

Overrides StorableConfigBase::delete

1 method overrides Config::delete()
ImmutableConfig::delete in core/lib/Drupal/Core/Config/ImmutableConfig.php
Deletes the configuration object.

File

core/lib/Drupal/Core/Config/Config.php, line 246
Contains \Drupal\Core\Config\Config.

Class

Config
Defines the default configuration object.

Namespace

Drupal\Core\Config

Code

public function delete() {
  $this->data = array();
  $this->storage
    ->delete($this->name);
  Cache::invalidateTags($this
    ->getCacheTags());
  $this->isNew = TRUE;
  $this
    ->resetOverriddenData();
  $this->eventDispatcher
    ->dispatch(ConfigEvents::DELETE, new ConfigCrudEvent($this));
  $this->originalData = $this->data;
  return $this;
}