You are here

public function LanguageConfigOverride::delete in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/language/src/Config/LanguageConfigOverride.php \Drupal\language\Config\LanguageConfigOverride::delete()
  2. 10 core/modules/language/src/Config/LanguageConfigOverride.php \Drupal\language\Config\LanguageConfigOverride::delete()

Deletes the configuration object.

Must invalidate the cache tags associated with the configuration object.

Return value

$this

Overrides StorableConfigBase::delete

File

core/modules/language/src/Config/LanguageConfigOverride.php, line 73

Class

LanguageConfigOverride
Defines language configuration overrides.

Namespace

Drupal\language\Config

Code

public function delete() {
  $this->data = [];
  $this->storage
    ->delete($this->name);
  Cache::invalidateTags($this
    ->getCacheTags());
  $this->isNew = TRUE;
  $this->eventDispatcher
    ->dispatch(LanguageConfigOverrideEvents::DELETE_OVERRIDE, new LanguageConfigOverrideCrudEvent($this));
  $this->originalData = $this->data;
  return $this;
}