$result->
addFacet($criteriaPart);
} private function createFacet(Criteria
$criteria, float
$min, float
$max): RangeFacetResult
{ $activeMin =
$min;
$activeMax =
$max;
$condition =
$criteria->
getCondition('price'
);
if ($condition instanceof PriceCondition
) { $activeMin =
$condition->
getMinPrice();
$activeMax =
$condition->
getMaxPrice();
} $minFieldName =
$this->queryAliasMapper->
getShortAlias('priceMin'
) ?? 'priceMin';
$maxFieldName =
$this->queryAliasMapper->
getShortAlias('priceMax'
) ?? 'priceMax';
$facet =
$criteria->
getFacet('price'
);
if ($facet instanceof PriceFacet && !
empty($facet->
getLabel())) { $label =
$facet->
getLabel();
} else { $label =
$this->snippetManager
->
getNamespace('frontend/listing/facet_labels'
)