public function getStoreCategories($store) { $category = $this->category->create(); $storeCategories = $category->getCategories($store->getRootCategoryId(), self::CAT_RECURSION_LEVEL, 'path', true, true); return $storeCategories; }