You are here

public static function FlagSearchApiSubscriber::getSubscribedEvents in Flag Search API 8

File

src/EventSubscriber/FlagSearchApiSubscriber.php, line 35

Class

FlagSearchApiSubscriber
Class FlagSearchApiSubscriber.

Namespace

Drupal\flag_search_api\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events['flag.entity_flagged'] = [
    'flagEntityFlagged',
  ];
  $events['flag.entity_unflagged'] = [
    'flagEntityUnflagged',
  ];
  return $events;
}