You are here

function entity_events_entity_update in Entity Events 8

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

Implements hook_entity_update().

{ @inheritdoc }

File

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

Code

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