You are here

public static function ContentHasherEventSubscriber::getSubscribedEvents in Tome 8

File

modules/tome_sync/src/EventSubscriber/ContentHasherEventSubscriber.php, line 93

Class

ContentHasherEventSubscriber
Event subscriber that keeps the content hash table up to date.

Namespace

Drupal\tome_sync\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[TomeSyncEvents::IMPORT_CONTENT][] = [
    'writeHash',
  ];
  $events[TomeSyncEvents::EXPORT_CONTENT][] = [
    'writeSourceHash',
  ];
  $events[TomeSyncEvents::DELETE_CONTENT][] = [
    'deleteHash',
  ];
  return $events;
}