CoolCMS API

CategoryTrailTrait

Table of Contents

Methods

buildCategoryTrail()  : array<string|int, BreadcrumbItemDTO>
Builds the trail for a category from the nested set (lft/rgt): root, ..., current.
buildCategoryUrl()  : string|null

Methods

buildCategoryTrail()

Builds the trail for a category from the nested set (lft/rgt): root, ..., 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>
On this page

Search results