You are here

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

File

modules/acquia_contenthub_publisher/src/EventSubscriber/EnqueueEligibility/RevisionIsCurrent.php, line 35

Class

RevisionIsCurrent
Subscribes to entity eligibility to prevent enqueuing unpublished revisions.

Namespace

Drupal\acquia_contenthub_publisher\EventSubscriber\EnqueueEligibility

Code

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