You are here

public function ViewUI::delete in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views_ui/src/ViewUI.php \Drupal\views_ui\ViewUI::delete()

Deletes an entity permanently.

Throws

\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.

Overrides EntityInterface::delete

File

core/modules/views_ui/src/ViewUI.php, line 983

Class

ViewUI
Stores UI related temporary settings.

Namespace

Drupal\views_ui

Code

public function delete() {
  return $this->storage
    ->delete();
}