You are here

abstract class EntityEventDeleteSubscriber in Entity Events 2.0.x

Same name and namespace in other branches
  1. 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\EventSubscriber
View 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

Namesort descending Modifiers Type Description Overrides
EntityEventDeleteSubscriber::getSubscribedEvents public static function
EntityEventDeleteSubscriber::onEntityDelete abstract public function Method called when Event occurs.