public static function UsageEventSubscriber::getSubscribedEvents in Bynder 8.2
Same name and namespace in other branches
- 8.3 modules/bynder_usage/src/EventSubscriber/UsageEventSubscriber.php \Drupal\bynder_usage\EventSubscriber\UsageEventSubscriber::getSubscribedEvents()
- 4.0.x modules/bynder_usage/src/EventSubscriber/UsageEventSubscriber.php \Drupal\bynder_usage\EventSubscriber\UsageEventSubscriber::getSubscribedEvents()
File
- modules/
bynder_usage/ src/ EventSubscriber/ UsageEventSubscriber.php, line 63
Class
- UsageEventSubscriber
- Listens for the usage events from Entity Usage module.
Namespace
Drupal\bynder_usage\EventSubscriberCode
public static function getSubscribedEvents() {
$events[Events::USAGE_ADD][] = [
'onAdd',
];
$events[Events::USAGE_DELETE][] = [
'onDelete',
];
return $events;
}