public function Config::delete in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::delete()
- 9 core/lib/Drupal/Core/Config/Config.php \Drupal\Core\Config\Config::delete()
Deletes the configuration object.
Return value
$this The configuration object.
File
- core/
lib/ Drupal/ Core/ Config/ Config.php, line 240
Class
- Config
- Defines the default configuration object.
Namespace
Drupal\Core\ConfigCode
public function delete() {
$this->data = [];
$this->storage
->delete($this->name);
Cache::invalidateTags($this
->getCacheTags());
$this->isNew = TRUE;
$this
->resetOverriddenData();
$this->eventDispatcher
->dispatch(new ConfigCrudEvent($this), ConfigEvents::DELETE);
$this->originalData = $this->data;
return $this;
}