function EntityInterface::postDelete
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::postDelete()
- 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::postDelete()
- 11.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::postDelete()
Acts on deleted entities before the delete hook is invoked.
Used after the entities are deleted but before invoking the delete hook.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.
\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.
2 methods override EntityInterface::postDelete()
- EntityBase::postDelete in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Acts on deleted entities before the delete hook is invoked.
- ViewUI::postDelete in core/
modules/ views_ui/ src/ ViewUI.php - Acts on deleted entities before the delete hook is invoked.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityInterface.php, line 381
Class
- EntityInterface
- Defines a common interface for all entity objects.
Namespace
Drupal\Core\EntityCode
public static function postDelete(EntityStorageInterface $storage, array $entities);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.