class StaticPageCategoryContainer

Class StaticPageCategoryContainer is injected as alligator.static.page.category.event.container. This container is connecting StaticPageCategoryManager manager to other services

Constants

STATIC_PAGE_CATEGORY_SIDE_BAR_CACHE

Key for caching static page categories

MEGAMENU_CACHE

Key for caching static page mega menu

Methods

__construct(ContainerInterface $container)

No description

dispatchTeeGenerateSignal(string $locale)

Dispatch event to cache category tree for specified locale

setCashCategoryTree(string $data, string $locale)

Set tree content to cache for Static Page Categories

mixed
getCashCategoryTree(string $locale)

Get cached tree content for Static Page Categories

object|EngineInterface
getTemplating()

Get templating negine

object
getCache()

Get cache handler instance

dispatchSidebarBlogsEvent(string $theme, string $locale)

Dispatch event to re cache html content

string
getCurrentLocale()

Get current locale from request

setNewRequest()

Set new request

mixed
getCachedMegamenu(string $locale)

Get cached mega menu

mixed
setMegamenuToCache(mixed $data, string $locale)

Set mega menu to cache

dispatchMegamenuSignal(string $theme, string $locale)

Dispatch re-cache mega menu signal event

dispatchMenuUpdateRemoveSignal(int $id, string $slug, string|null $name = null)

No description

bool
checkIfPermalinkIsAvailable(string $permalink)

Check permalink availability. Permalink must be unique on database level

Details

at line 51
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 62
StaticPageCategoryTreeSignalEvent dispatchTeeGenerateSignal(string $locale)

Dispatch event to cache category tree for specified locale

Parameters

string $locale

Return Value

StaticPageCategoryTreeSignalEvent

at line 72
setCashCategoryTree(string $data, string $locale)

Set tree content to cache for Static Page Categories

Parameters

string $data
string $locale

at line 83
mixed getCashCategoryTree(string $locale)

Get cached tree content for Static Page Categories

Parameters

string $locale

Return Value

mixed

at line 92
object|EngineInterface getTemplating()

Get templating negine

Return Value

object|EngineInterface

at line 101
object getCache()

Get cache handler instance

Return Value

object

at line 112
dispatchSidebarBlogsEvent(string $theme, string $locale)

Dispatch event to re cache html content

Parameters

string $theme
string $locale

at line 121
string getCurrentLocale()

Get current locale from request

Return Value

string

at line 129
setNewRequest()

Set new request

at line 140
mixed getCachedMegamenu(string $locale)

Get cached mega menu

Parameters

string $locale

Return Value

mixed

at line 152
mixed setMegamenuToCache(mixed $data, string $locale)

Set mega menu to cache

Parameters

mixed $data
string $locale

Return Value

mixed

at line 160
StaticPageManager getPostManager()

Return Value

StaticPageManager

at line 172
StaticPageSidebarSignalEvent|Event dispatchMegamenuSignal(string $theme, string $locale)

Dispatch re-cache mega menu signal event

Parameters

string $theme
string $locale

Return Value

StaticPageSidebarSignalEvent|Event

at line 182
dispatchMenuUpdateRemoveSignal(int $id, string $slug, string|null $name = null)

Parameters

int $id
string $slug
string|null $name

at line 193
bool checkIfPermalinkIsAvailable(string $permalink)

Check permalink availability. Permalink must be unique on database level

Parameters

string $permalink

Return Value

bool