InitializationTrait
Table of Contents
Properties
- $categoryTree : array<int, array<string, mixed>>|null
- Tree from {@see TreeStructure::prepareForTemplate()}; never mutated, assigned to the template by value.
- $loadedCategories : array<string|int, BaseEntity>|null
- Categories loaded once per component instance (the query does not depend on render arguments).
Methods
- getActivePath() : array<int, int>
- getCurrentCategory() : ProductCategory|null
- initializeRender() : void
Properties
$categoryTree
Tree from {@see TreeStructure::prepareForTemplate()}; never mutated, assigned to the template by value.
private
array<int, array<string, mixed>>|null
$categoryTree
= null
$loadedCategories
Categories loaded once per component instance (the query does not depend on render arguments).
private
array<string|int, BaseEntity>|null
$loadedCategories
= null
Methods
getActivePath()
private
getActivePath(array<string|int, object> $categories, ProductCategory|null $currentCategory) : array<int, int>
Parameters
- $categories : array<string|int, object>
- $currentCategory : ProductCategory|null
Return values
array<int, int>getCurrentCategory()
private
getCurrentCategory() : ProductCategory|null
Return values
ProductCategory|nullinitializeRender()
private
initializeRender() : void