You are here

function entity_events_entity_delete in Entity Events 8

Same name and namespace in other branches
  1. 2.0.x entity_events.module \entity_events_entity_delete()

Implements hook_entity_delete().

File

./entity_events.module, line 40
This module holds functions for entity events.

Code

function entity_events_entity_delete(EntityInterface $entity) {
  $event_type = EntityEventType::DELETE;
  $event = new EntityEvent($event_type, $entity);
  _entity_events_dispatch($event_type, $event);
}