public function RevisionIsCurrent::__construct in Acquia Content Hub 8.2
ImportedEntity constructor.
Parameters
\Drupal\acquia_contenthub_publisher\EntityModeratedRevision $entity_moderated_revision: Entity Moderated Revision Service.
File
- modules/
acquia_contenthub_publisher/ src/ EventSubscriber/ EnqueueEligibility/ RevisionIsCurrent.php, line 28
Class
- RevisionIsCurrent
- Subscribes to entity eligibility to prevent enqueuing unpublished revisions.
Namespace
Drupal\acquia_contenthub_publisher\EventSubscriber\EnqueueEligibilityCode
public function __construct(EntityModeratedRevision $entity_moderated_revision) {
$this->entityModeratedRevision = $entity_moderated_revision;
}