You are here

public function BackgroundImageSettings::delete in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/BackgroundImageSettings.php \Drupal\background_image\BackgroundImageSettings::delete()
  2. 2.x src/BackgroundImageSettings.php \Drupal\background_image\BackgroundImageSettings::delete()

Deletes the configuration object.

Must invalidate the cache tags associated with the configuration object.

Return value

$this

Overrides StorableConfigBase::delete

File

src/BackgroundImageSettings.php, line 31

Class

BackgroundImageSettings

Namespace

Drupal\background_image

Code

public function delete() {
  throw new ImmutableConfigException("Can not delete immutable configuration {$this->getName()}. This config is automatically stored in the \\Drupal\\background_image\\Entity\\BackgroundImage entity.");
}