You are here

public static function FlagEvents::getSubscribedEvents in Message Subscribe 8

File

message_subscribe_email/src/EventSubscriber/FlagEvents.php, line 49

Class

FlagEvents
React to flag and unflag events.

Namespace

Drupal\message_subscribe_email\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[Flag::ENTITY_FLAGGED] = [
    'onFlag',
    50,
  ];
  $events[Flag::ENTITY_UNFLAGGED] = [
    'onUnflag',
    50,
  ];
  return $events;
}