CoolCMS API

ProductSetTrailTrait

Table of Contents

Methods

buildProductSetTrail()  : array<string|int, BreadcrumbItemDTO>
Builds the product set detail trail: the category trail plus the set name as the current item.

Methods

buildProductSetTrail()

Builds the product set detail trail: the category trail plus the set name as the current item.

protected buildProductSetTrail(ProductSet|null $productSet) : array<string|int, BreadcrumbItemDTO>

Requires the class to use CategoryTrailTrait as well. Categories belong to the product, not to the set (M:N product_category_relations), so a bundle (typeId = 2) has no product and its trail is only the set name.

Parameters
$productSet : ProductSet|null
Return values
array<string|int, BreadcrumbItemDTO>
On this page

Search results