function hook_post_action_example_entity_postdelete in Hook Post Action 8
Same name and namespace in other branches
- 7 hook_post_action_example/hook_post_action_example.module \hook_post_action_example_entity_postdelete()
Implements hook_entity_postdelete().
File
- hook_post_action_example/
hook_post_action_example.module, line 46 - A working example for hook_post_action module.
Code
function hook_post_action_example_entity_postdelete(EntityInterface $entity) {
$id = $entity
->id();
$entity_type = $entity
->getEntityTypeId();
\Drupal::logger('hook_post_action_test')
->info("The deleted entity {$entity_type} id is {$id} from " . __FUNCTION__);
}