DeclarationCategoryContainer
class DeclarationCategoryContainer
Class DeclarationCategoryContainer
Constants
| DEC_CATEGORY_SIDE_BAR_CACHE |
Declaration category tree cache |
| DECORATOR_CATEGORY_DATA_EVENT |
Event name for signaling custom decorator for category tree |
Methods
__construct(ContainerInterface $container)
DeclarationCategoryContainer constructor.
Translator
getTranslator()
No description
Router
getRouter()
No description
array|string
getAllTreeCategoriesForCategoryAddTree(string $locale = null)
No description
string
getCacheCategoryTree(string $locale)
Cached html representing category tree
mixed
setCacheCategoryTree(string $data, string $locale)
Set category tree html to cache
dispatchTreeGenerateSignal(string $locale)
Dispatch signal to re-cache declaration category tree
dispatchRemoveImagesForDeletedCategories(array $imagesIds)
Dispatch event to remove images that match provided ids
dispatchDeclarationDataEvent()
Dispatch event for custom decorator
Details
at line 47
__construct(ContainerInterface $container)
DeclarationCategoryContainer constructor.
at line 55
Translator
getTranslator()
at line 63
Router
getRouter()
at line 73
array|string
getAllTreeCategoriesForCategoryAddTree(string $locale = null)
at line 85
string
getCacheCategoryTree(string $locale)
Cached html representing category tree
at line 98
mixed
setCacheCategoryTree(string $data, string $locale)
Set category tree html to cache
at line 110
DecSignalTreeEvent
dispatchTreeGenerateSignal(string $locale)
Dispatch signal to re-cache declaration category tree
at line 120
dispatchRemoveImagesForDeletedCategories(array $imagesIds)
Dispatch event to remove images that match provided ids
at line 130
CategoryEvent
dispatchDeclarationDataEvent()
Dispatch event for custom decorator