CategoryFacet
$facet,
Criteria
$reverted,
Criteria
$criteria,
ShopContextInterface
$context ): ?TreeFacetResult
{ $ids =
$this->
fetchCategoriesOfProducts($reverted,
$context);
if (empty($ids)) { return null;
} $ids =
$this->
filterSystemCategories($ids,
$context);
$ids =
$this->categoryDepthService->
get( $context->
getShop()->
getCategory(),
$facet->
getDepth(),
$ids );
$categories =
$this->categoryService->
getList($ids,
$context);
return $this->categoryTreeFacetResultBuilder->
buildFacetResult( $categories,