$customFacets =
$this->facetService->
getAllCategoryFacets($context);
} foreach ($customFacets as $customFacet) { if (!
$customFacet->
getFacet()) { continue;
} $facet =
$customFacet->
getFacet();
$criteria->
addFacet($facet);
if ($facet instanceof ProductAttributeFacet
) { $this->
handleProductAttributeFacet($request,
$criteria,
$facet);
} elseif ($facet instanceof CombinedConditionFacet
) { $this->
handleCombinedConditionFacet($request,
$criteria,
$facet);
} } } /**
* @return bool
*/
private function isCategoryListing(Request
$request) {