You are here

public static function UsageEventSubscriber::getSubscribedEvents in Bynder 8

File

src/EventSubscriber/UsageEventSubscriber.php, line 64

Class

UsageEventSubscriber
Listens for the usage events from Entity Usage module.

Namespace

Drupal\bynder\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[Events::USAGE_ADD][] = [
    'onAdd',
  ];
  $events[Events::USAGE_DELETE][] = [
    'onDelete',
  ];
  return $events;
}