/** * Gets path to a current node (including current node) * * Overloads parent method * @return array */ private function getCategoryPathArray(Category $category) { $path = array(); $pathNodes = $category->getPathNodeSet(Category::INCLUDE_ROOT_NODE); $defaultLang = $this->application->getDefaultLanguageCode(); foreach ($pathNodes as $node) { $path[] = $node->getValueByLang('name', $defaultLang); } return $path; }