function entity_events_entity_presave in Entity Events 2.0.x
Implements hook_entity_presave().
{ @inheritdoc }
File
- ./
entity_events.module, line 40 - This module holds functions for entity events.
Code
function entity_events_entity_presave(EntityInterface $entity) {
$event_type = EntityEventType::PRESAVE;
$event = new EntityEvent($event_type, $entity);
_entity_events_dispatch($event_type, $event);
}