protected function IsExcludedImageStyle::isExcluded in Acquia Lift Connector 8.4
Checks if current entity must be excluded from export queue.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: Entity.
Return value
bool TRUE if entity is image style from acquia_lift_publisher module.
1 call to IsExcludedImageStyle::isExcluded()
- IsExcludedImageStyle::onEnqueueCandidateEntity in modules/
acquia_lift_publisher/ src/ EventSubscriber/ EnqueueEligibility/ IsExcludedImageStyle.php - Reacts on ContentHubPublisherEvents::ENQUEUE_CANDIDATE_ENTITY event.
File
- modules/
acquia_lift_publisher/ src/ EventSubscriber/ EnqueueEligibility/ IsExcludedImageStyle.php, line 59
Class
- IsExcludedImageStyle
- Class IsExcludedImageStyle.
Namespace
Drupal\acquia_lift_publisher\EventSubscriber\EnqueueEligibilityCode
protected function isExcluded(EntityInterface $entity) {
if (FALSE === $entity instanceof ImageStyle) {
return FALSE;
}
$excluded_items = [
'acquia_lift_publisher_preview_image',
];
return in_array($entity
->getOriginalId(), $excluded_items);
}