CategoryTrailTrait
Table of Contents
Methods
- buildCategoryTrail() : array<string|int, BreadcrumbItemDTO>
- Builds the trail for a category from the nested set (lft/rgt): root to current.
- buildCategoryUrl() : string|null
Methods
buildCategoryTrail()
Builds the trail for a category from the nested set (lft/rgt): root to current.
protected
buildCategoryTrail(Category|null $currentCategory[, bool $intermediate = false ]) : array<string|int, BreadcrumbItemDTO>
Parameters
- $currentCategory : Category|null
- $intermediate : bool = false
Return values
array<string|int, BreadcrumbItemDTO>buildCategoryUrl()
protected
buildCategoryUrl(Category $category) : string|null
Parameters
- $category : Category