public function supportsFacet(FacetInterface $facet)
{
return $facet instanceof ProductAttributeFacet;
}
public function generatePartialFacet(
FacetInterface $facet,
Criteria $reverted,
Criteria $criteria,
ShopContextInterface $context
) {
return $this->getFacet($facet, $reverted, $criteria, $context);
}
/**
* @return BooleanFacetResult|RadioFacetResult|RangeFacetResult|ValueListFacetResult|null
*/
private function getFacet(
ProductAttributeFacet $facet,
Criteria $reverted,
Criteria $criteria,
ShopContextInterface $context
): ?FacetResultInterface {