public function BackgroundImageSettings::delete in Background Image 2.0.x
Same name and namespace in other branches
- 8 src/BackgroundImageSettings.php \Drupal\background_image\BackgroundImageSettings::delete()
- 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
Namespace
Drupal\background_imageCode
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.");
}