Config::delete

public Config::delete()

Deletes the configuration object.

Return value

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

Overrides StorableConfigBase::delete

File

core/lib/Drupal/Core/Config/Config.php, line 241

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;
}
doc_Drupal
2016-10-29 08:52:07
Comments
Leave a Comment

Please login to continue.