$facet =
$criteria->
getFacet('immediate_delivery'
);
if ($facet instanceof ImmediateDeliveryFacet && !
empty($facet->
getLabel())) { $label =
$facet->
getLabel();
} else { $label =
$this->snippetManager
->
getNamespace('frontend/listing/facet_labels'
) ->
get('immediate_delivery', 'Immediate delivery'
);
} $fieldName =
$this->queryAliasMapper->
getShortAlias('immediateDelivery'
) ?? 'immediateDelivery';
return new BooleanFacetResult( 'immediate_delivery',
$fieldName,
$criteria->
hasCondition('immediate_delivery'
),
$label );
}}