8.3.x EntityInterface.php public EntityInterface::delete()
8.0.x EntityInterface.php public EntityInterface::delete()
8.1.x EntityInterface.php public EntityInterface::delete()
8.2.x EntityInterface.php public EntityInterface::delete()
8.4.x EntityInterface.php public EntityInterface::delete()

Deletes an entity permanently.

Throws

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

Overrides EntityInterface::delete

3 methods override EntityInterface::delete()
Entity::delete in core/lib/Drupal/Core/Entity/Entity.php
Deletes an entity permanently.
EntityInterface::delete in core/lib/Drupal/Core/Entity/EntityInterface.php
Deletes an entity permanently.
ViewUI::delete in core/modules/views_ui/src/ViewUI.php
Deletes an entity permanently.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 289

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function delete();