You are here

public static function FlagForListSubscriber::getSubscribedEvents in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/EventSubscriber/FlagForListSubscriber.php \Drupal\flag_lists\EventSubscriber\FlagForListSubscriber::getSubscribedEvents()

File

src/EventSubscriber/FlagForListSubscriber.php, line 26

Class

FlagForListSubscriber
Class FlagForListSubscriber.

Namespace

Drupal\flag_lists\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[FlagEvents::ENTITY_FLAGGED][] = [
    'flagListsEntityFlagged',
    100,
  ];
  $events[FlagEvents::ENTITY_UNFLAGGED][] = [
    'flagListsEntityUnflagged',
    100,
  ];
  return $events;
}