function EntityInterface::delete
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::delete()
- 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::delete()
- 8.9.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::delete()
Deletes an entity permanently.
Throws
\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityInterface.php, line 229
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\EntityCode
public function delete();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.