/**
* @param Category[] $categories
* @param int[] $activeIds
* @param int $systemCategoryId
*
* @return TreeFacetResult|null
*/
public function buildFacetResult(array
$categories, array
$activeIds,
$systemCategoryId, CategoryFacet
$facet) { $items =
$this->
getCategoriesOfParent($categories,
$systemCategoryId);
if (!
$items) { return null;
} $values =
[];
foreach ($items as $item) { $values[] =
$this->
createTreeItem($categories,
$item,
$activeIds);
} if (!
empty($facet->
getLabel())) {