/**
* Given a category id, returns the category path
*
* @param int $categoryId Id of the category
*
* @return array Array containing the path parts
*/
public function sCategoryPath($categoryId) { $parts =
$this->modelManager->
getRepository(Category::
class)->
getPathById($categoryId);
if (\
is_string($parts)) { return [$parts];
} $level =
Shopware()->
Shop()->
getCategory()->
getLevel() ?: 1;
return \
array_slice($parts,
$level);
} /**
* @deprecated in 5.6, will be removed in 5.7 without replacement
*
* @return Smarty_Data
*/