AdvertTrailTrait
Table of Contents
Methods
- buildAdvertTrail() : array<string|int, BreadcrumbItemDTO>
- Builds the trail for an advert: its category trail plus the advert title as the active item.
Methods
buildAdvertTrail()
Builds the trail for an advert: its category trail plus the advert title as the active item.
protected
buildAdvertTrail(Advert|null $advert) : array<string|int, BreadcrumbItemDTO>
Requires the class to also use CategoryTrailTrait.
Parameters
- $advert : Advert|null