hook_entity_delete
function hook_entity_delete
hook_entity_delete(Drupal\Core\Entity\EntityInterface $entity)
Respond to entity deletion.
This hook runs once the entity has been deleted from the storage.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity object for the entity that has been deleted.