public function IsExcludedImageStyle::onEnqueueCandidateEntity in Acquia Lift Connector 8.4
Reacts on ContentHubPublisherEvents::ENQUEUE_CANDIDATE_ENTITY event.
Parameters
\Drupal\acquia_contenthub_publisher\Event\ContentHubEntityEligibilityEvent $event: Event.
Throws
\Exception
File
- modules/
acquia_lift_publisher/ src/ EventSubscriber/ EnqueueEligibility/ IsExcludedImageStyle.php, line 40
Class
- IsExcludedImageStyle
- Class IsExcludedImageStyle.
Namespace
Drupal\acquia_lift_publisher\EventSubscriber\EnqueueEligibilityCode
public function onEnqueueCandidateEntity(ContentHubEntityEligibilityEvent $event) {
$entity = $event
->getEntity();
if (FALSE == $this
->isExcluded($entity)) {
return;
}
$event
->setEligibility(FALSE);
$event
->stopPropagation();
}