You are here

public static function TrackEntity::getSubscribedEvents in Acquia Content Hub 8.2

File

modules/acquia_contenthub_subscriber/src/EventSubscriber/EntityImport/TrackEntity.php, line 35

Class

TrackEntity
Tracks entities as their saved/updated.

Namespace

Drupal\acquia_contenthub_subscriber\EventSubscriber\EntityImport

Code

public static function getSubscribedEvents() {
  $events[AcquiaContentHubEvents::ENTITY_IMPORT_NEW][] = [
    'trackEntity',
    100,
  ];
  $events[AcquiaContentHubEvents::ENTITY_IMPORT_UPDATE][] = [
    'trackEntity',
    100,
  ];
  return $events;
}