protected function getSlugList() : array
    {
        $arResult = [$this->slug];

        $obParentCategory = $this->parent;
        while ($obParentCategory->isNotEmpty()) {
            $arResult[] = $obParentCategory->slug;
            $obParentCategory = $obParentCategory->parent;
        }

        return $arResult;
    }
protected function getSlugList() : array
    {
        $arResult = [$this->slug];

        $obParentCategory = $this->parent;
        while ($obParentCategory->isNotEmpty()) {
            $arResult[] = $obParentCategory->slug;
            $obParentCategory = $obParentCategory->parent;
        }

        return $arResult;
    }
protected function getSlugList ( ) : array { $ arResult = [ $ this -> slug ] ; $ obParentCategory = $ this -> parent ; while ( $ obParentCategory -> isNotEmpty ( ) ) { $ arResult [ ] = $ obParentCategory -> slug ; $ obParentCategory = $ obParentCategory -> parent ; } return $ arResult ; }
Get array with categories slugs
@return array
Get array with categories slugs