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