public static function FlagEvents::getSubscribedEvents in Flag 8.4
File
- tests/
modules/ flag_event_test/ src/ EventSubscriber/ FlagEvents.php, line 47
Class
- FlagEvents
- Test flag events subscriber.
Namespace
Drupal\flag_event_test\EventSubscriberCode
public static function getSubscribedEvents() {
$events[Flag::ENTITY_FLAGGED] = [
'onFlag',
50,
];
$events[Flag::ENTITY_UNFLAGGED] = [
'onUnflag',
50,
];
return $events;
}