You are here

public function LanguageHierarchyConfigOverride::delete in Language Hierarchy 2.x

Same name and namespace in other branches
  1. 8 src/Config/LanguageHierarchyConfigOverride.php \Drupal\language_hierarchy\Config\LanguageHierarchyConfigOverride::delete()

Deletes the configuration object.

Must invalidate the cache tags associated with the configuration object.

Return value

$this

Overrides LanguageConfigOverride::delete

File

src/Config/LanguageHierarchyConfigOverride.php, line 74

Class

LanguageHierarchyConfigOverride
Defines language configuration overrides.

Namespace

Drupal\language_hierarchy\Config

Code

public function delete() {

  // Swap storage used by the delete method.
  $source_storage = $this->storage;
  $this->storage = $this->target_storage;
  parent::delete();

  // Restore source storage.
  $this->storage = $source_storage;
  return $this;
}