function EntityBase::postDelete
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::postDelete()
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::postDelete()
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::postDelete()
- main core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::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
6 calls to EntityBase::postDelete()
- Comment::postDelete in core/
modules/ comment/ src/ Entity/ Comment.php - ConfigEntityBundleBase::postDelete in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBundleBase.php - EntityTestBundleClass::postDelete in core/
modules/ system/ tests/ modules/ entity_test_bundle_class/ src/ Entity/ EntityTestBundleClass.php - ImageStyle::postDelete in core/
modules/ image/ src/ Entity/ ImageStyle.php - Term::postDelete in core/
modules/ taxonomy/ src/ Entity/ Term.php
17 methods override EntityBase::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 - ConfigEntityBundleBase::postDelete in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBundleBase.php - 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.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 431
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public static function postDelete(EntityStorageInterface $storage, array $entities) {
static::invalidateTagsOnDelete($storage->getEntityType(), $entities);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.