CodeExplorer getCategoryIdsWithParent example
public function sGetCategories($id) { $pathIds =
$this->
getCategoryPath($id);
$grouped =
$this->
getCategoryIdsWithParent($pathIds);
$ids =
array_merge($pathIds,
array_keys($grouped));
$context =
$this->contextService->
getShopContext();
$categories =
$this->categoryService->
getList($ids,
$context);
unset($grouped[$this->baseId
]);
$tree =
$this->
buildTree($grouped,
$this->baseId
);