BlockElementsEventContainer
class BlockElementsEventContainer
Class BlockElementsEventContainer
Traits
Constants
| BLOCK_ELEMENTS_CACHE_PREFIX |
|
Methods
Return all layouts for selected page
Find cached entity params
Get route content
No description
No description
Re cache
Clear cached twigs
Main product search. Sets all preconditions and do database search
No description
Get category entities from database by ids
Get attribute value entities from database by ids
Get brand entities from database by ids
No description
No description
No description
No description
No description
Dispatch event that returns content for block element
No description
No description
No description
No description
Do product search by text
Get brands by search string
Get categories by search string
No description
No description
No description
Return all pages to be managed
Add new custom layout
No description
No description
Find theme by name
Find theme by name
Find products based on algorithm type
Find all active plugin configuration templates for specific plugin
Find all active plugin names for specific theme
Activate provided plugin layouts
Get all distinct relationship names
Get all templates for specified params
No description
Dispatch event when template is removed
No description
Retrieve cache dir path
Get FSaS filter for block rendering
Details
in LayoutManagementEventContainerTrait at line 35
array
getLayoutsForRoute(string $param)
Return all layouts for selected page
in LayoutManagementEventContainerTrait at line 125
bool|mixed
getEntityParamFromCache(string $key)
Find cached entity params
in LayoutManagementEventContainerTrait at line 138
Response|bool
getRouteContent(string $path)
Get route content
at line 49
__construct(ContainerInterface $container)
at line 59
array
getBrands(array $ids)
at line 67
reCachePluginsLayouts()
Re cache
at line 78
clearTwigCache()
Clear cached twigs
at line 93
QueryBuilder
doProductSearch(ProductSearchWrapper $searchWrapper)
Main product search. Sets all preconditions and do database search
at line 101
PluginSettingsManager|object
getPluginsManager()
at line 112
array
getCategories(array $ids)
Get category entities from database by ids
at line 123
array
getAttributeValues(array $ids)
Get attribute value entities from database by ids
at line 134
array
getBrandsForIds(array $ids)
Get brand entities from database by ids
at line 144
array
getProductsByIds(array $ids)
at line 152
mixed|null
getLoggedUser()
at line 164
mixed
getDataFromCache(string $key)
at line 175
mixed
setDataToCache(string $key, mixed $data)
at line 185
EventWithResult
dispatchBlockElementsEntitiesEvent(mixed $entity = null)
at line 202
EventWithResult
dispatchBlockElementsContentEvent(array $paramBag)
Dispatch event that returns content for block element
at line 216
EventWithResult
dispatchBlockElementsNamesEvent(mixed $entity, array $ids)
at line 230
EventWithResult
dispatchBlockElementsAlgorithmParamEvent(mixed $entity, mixed $algorithm)
at line 243
EventWithResult
dispatchBlockElementsAvailableAlgorithmEvent(mixed $entity)
at line 259
BlockPageEvent|Event
dispatchBlockPageUpdateEvent(mixed $entity, string $routeName, string $newRouteName, string $name)
at line 272
array
getProductsByNameJSON(mixed $searchParam, int $page, int $offset)
Do product search by text
at line 287
array
getBrandsByNameJSON(mixed $searchParam, int $page, int $offset)
Get brands by search string
at line 300
array
getCategoriesByNameJSON(mixed $searchParam, int $page, int $offset)
Get categories by search string
at line 308
object|Twig_Environment
getTwigLoader()
at line 316
object
getTemplatingEngine()
at line 324
clearRoutesCache()
at line 344
array
getAllThemePages()
Return all pages to be managed
at line 357
bool
addNewCustomLayout(string $layout)
Add new custom layout
at line 368
Event
dispatchEvent(string|null $eventKey, Event|null $event = null)
at line 376
mixed
getCurrentThemeName()
at line 387
mixed
getCurrentDbTheme()
Find theme by name
at line 400
mixed
getThemeByName(string $themeName)
Find theme by name
at line 411
saveTheme(Theme $theme)
Persist new theme
at line 423
array
getProductsByAlgorithm(mixed $algorithm, integer $numberOfProducts)
Find products based on algorithm type
at line 432
mixed
findAllActivePluginConfigLayouts()
Find all active plugin configuration templates for specific plugin
at line 443
array
findAllActivePluginsForTheme(string $theme = null)
Find all active plugin names for specific theme
at line 452
setActivePluginConfigLayouts(array $activeBlocks)
Activate provided plugin layouts
at line 461
array
getEntityRelationshipNames()
Get all distinct relationship names
at line 473
array
findAllTemplatesForTheme(bool $loadContent = false, null $entityType = null)
Get all templates for specified params
at line 483
object|BlockElementsTemplatesManager
getBlockTemplatesManager()
at line 492
Event
dispatchBlockTemplateRemoveEvent()
Dispatch event when template is removed
at line 500
clearBlockElementCacheContent(string|null $template = null)
at line 518
mixed
getCacheDir()
Retrieve cache dir path
at line 527
FSassFilter
getFSasFilter()
Get FSaS filter for block rendering