You are here

abstract class EntityEventUpdateSubscriber in Entity Events 8

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

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