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 to the current category.
buildCategoryUrl()  : string|null

Methods

buildCategoryTrail()

Builds the trail for a category from the nested set (`lft`/`rgt`): root to the current category.

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