You are here

public static function BookEventSubscriber::getSubscribedEvents in Tome 8

File

modules/tome_sync/src/EventSubscriber/BookEventSubscriber.php, line 135

Class

BookEventSubscriber
Event subscriber that keep book outlines in sync with content changes.

Namespace

Drupal\tome_sync\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[TomeSyncEvents::IMPORT_ALL][] = [
    'importBookOutlines',
  ];
  $events[TomeSyncEvents::EXPORT_CONTENT][] = [
    'exportBookOutlines',
  ];
  $events[TomeSyncEvents::EXPORT_ALL][] = [
    'exportBookOutlines',
  ];
  return $events;
}