Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::postDelete()
  2. 9 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.

3 calls to EntityInterface::postDelete()
BlockContent::postDelete in core/modules/block_content/src/Entity/BlockContent.php
Acts on deleted entities before the delete hook is invoked.
Node::postDelete in core/modules/node/src/Entity/Node.php
Acts on deleted entities before the delete hook is invoked.
Term::postDelete in core/modules/taxonomy/src/Entity/Term.php
Acts on deleted entities before the delete hook is invoked.
7 methods override EntityInterface::postDelete()
BlockContent::postDelete in core/modules/block_content/src/Entity/BlockContent.php
Acts on deleted entities before the delete hook is invoked.
Comment::postDelete in core/modules/comment/src/Entity/Comment.php
Acts on deleted entities before the delete hook is invoked.
EntityBase::postDelete in core/lib/Drupal/Core/Entity/EntityBase.php
Acts on deleted entities before the delete hook is invoked.
Node::postDelete in core/modules/node/src/Entity/Node.php
Acts on deleted entities before the delete hook is invoked.
PathAlias::postDelete in core/modules/path_alias/src/Entity/PathAlias.php
Acts on deleted entities before the delete hook is invoked.

... See full list

File

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

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $entities);