You are here

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

File

modules/acquia_contenthub_publisher/src/EventSubscriber/EnqueueEligibility/FileIsTemporary.php, line 18

Class

FileIsTemporary
Subscribes to entity eligibility to prevent enqueueing temporary files.

Namespace

Drupal\acquia_contenthub_publisher\EventSubscriber\EnqueueEligibility

Code

public static function getSubscribedEvents() {
  $events[ContentHubPublisherEvents::ENQUEUE_CANDIDATE_ENTITY][] = [
    'onEnqueueCandidateEntity',
    50,
  ];
  return $events;
}