You are here

public static function Entity::postDelete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::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.

Overrides EntityInterface::postDelete

11 calls to Entity::postDelete()
Comment::postDelete in core/modules/comment/src/Entity/Comment.php
Acts on deleted entities before the delete hook is invoked.
ConfigEntityBundleBase::postDelete in core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php
Acts on deleted entities before the delete hook is invoked.
ConfigTest::postDelete in core/modules/config/tests/config_test/src/Entity/ConfigTest.php
Acts on deleted entities before the delete hook is invoked.
ConfigurableLanguage::postDelete in core/modules/language/src/Entity/ConfigurableLanguage.php
Acts on deleted entities before the delete hook is invoked.
Feed::postDelete in core/modules/aggregator/src/Entity/Feed.php
Acts on deleted entities before the delete hook is invoked.

... See full list

14 methods override Entity::postDelete()
BaseFieldOverride::postDelete in core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.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.
ConfigEntityBundleBase::postDelete in core/lib/Drupal/Core/Config/Entity/ConfigEntityBundleBase.php
Acts on deleted entities before the delete hook is invoked.
ConfigTest::postDelete in core/modules/config/tests/config_test/src/Entity/ConfigTest.php
Acts on deleted entities before the delete hook is invoked.
ConfigurableLanguage::postDelete in core/modules/language/src/Entity/ConfigurableLanguage.php
Acts on deleted entities before the delete hook is invoked.

... See full list

File

core/lib/Drupal/Core/Entity/Entity.php, line 445
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $entities) {
  static::invalidateTagsOnDelete($storage
    ->getEntityType(), $entities);
}