abstract class EntityEventUpdateSubscriber in Entity Events 8
Same name and namespace in other branches
- 2.0.x src/EventSubscriber/EntityEventUpdateSubscriber.php \Drupal\entity_events\EventSubscriber\EntityEventUpdateSubscriber
Event subscriber for entity update event.
Hierarchy
- class \Drupal\entity_events\EventSubscriber\EntityEventUpdateSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of EntityEventUpdateSubscriber
File
- src/
EventSubscriber/ EntityEventUpdateSubscriber.php, line 12
Namespace
Drupal\entity_events\EventSubscriberView source
abstract class EntityEventUpdateSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
$events[EntityEventType::UPDATE][] = [
'onEntityUpdate',
800,
];
return $events;
}
/**
* Method called when Event occurs.
*
* @param \Drupal\entity_events\Event\EntityEvent $event
* The event.
*/
public abstract function onEntityUpdate(EntityEvent $event);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityEventUpdateSubscriber:: |
public static | function | ||
EntityEventUpdateSubscriber:: |
abstract public | function | Method called when Event occurs. |