class StaticPageContainer

Class StaticPageContainer is injected as alligator.static.page.event.container. This container is connecting StaticPageManager manager to other services

Traits

Class LanguageEntityRelationshipEventContainerTrait. Defines methods for event containers of entities that can be have language dependent relationship

Constants

STATIC_PAGE_LASTN_FRONTEND_CACHE

Key for caching last few static pages

Methods

mixed
dispatchLanguageRelatedEntityEvent(string $class, array $paramBag, string $locale)

No description

__construct(ContainerInterface $container)

No description

object
getBlogPostManager()

No description

Translator
getTranslator()

No description

object
getImageManager()

No description

User|null
getLoggedUser()

Find logged user

dispatchTeeGenerateSignal(string $locale)

Dispatch event to cache category tree for specified locale

prepareForDeleteBlogPost(array $blogPostArray)

Remove all foreign entities before deleting static page

object
getCache()

Get shop cache object

mixed
setLastNBlogPostForFrontend(mixed $data, string $locale)

Set last blog posts to cache

dispatchStaticPageSidebarSignalEvent(string $theme, string $locale)

Dispatch event to re cache html content

dispatchMegamenuSignal(string $theme, string $locale)

Dispatch event to re cache mega menu

dispatchFooterSignal()

Dispatch event to re cache footer content

object|EngineInterface
getTemplating()

No description

mixed
checkIfBlogSidebarIsCached(string $locale)

Get cached last ns static pages

setNewRequest()

set new request

ContainerInterface
getContainer()

No description

setContainer(ContainerInterface $container)

No description

boolean
checkIfPermalinkIsAvailable(string $permalink)

Check permalink availability. Permalink must be unique on database level

dispatchStaticPageActionEvent(StaticPage $staticPage)

Dispatch static page action (save, edit) event

Details

mixed dispatchLanguageRelatedEntityEvent(string $class, array $paramBag, string $locale)

Parameters

string $class
array $paramBag
string $locale

Return Value

mixed

at line 45
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 53
object getBlogPostManager()

Return Value

object

at line 61
Translator getTranslator()

Return Value

Translator

at line 68
object getImageManager()

Return Value

object

at line 77
User|null getLoggedUser()

Find logged user

Return Value

User|null

at line 88
dispatchTeeGenerateSignal(string $locale)

Dispatch event to cache category tree for specified locale

Parameters

string $locale

at line 97
prepareForDeleteBlogPost(array $blogPostArray)

Remove all foreign entities before deleting static page

Parameters

array $blogPostArray

at line 109
StaticPageCategoryManager getBlogCategoryManager()

at line 118
object getCache()

Get shop cache object

Return Value

object

at line 130
mixed setLastNBlogPostForFrontend(mixed $data, string $locale)

Set last blog posts to cache

Parameters

mixed $data
string $locale

Return Value

mixed

at line 143
StaticPageSidebarSignalEvent dispatchStaticPageSidebarSignalEvent(string $theme, string $locale)

Dispatch event to re cache html content

Parameters

string $theme
string $locale

Return Value

StaticPageSidebarSignalEvent

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

Dispatch event to re cache mega menu

Parameters

string $theme
string $locale

Return Value

StaticPageSidebarSignalEvent|Event

at line 166
StaticPageSidebarSignalEvent|Event dispatchFooterSignal()

Dispatch event to re cache footer content

Return Value

StaticPageSidebarSignalEvent|Event

at line 175
object|EngineInterface getTemplating()

Return Value

object|EngineInterface

at line 186
mixed checkIfBlogSidebarIsCached(string $locale)

Get cached last ns static pages

Parameters

string $locale

Return Value

mixed

at line 194
setNewRequest()

set new request

at line 202
ContainerInterface getContainer()

Return Value

ContainerInterface

at line 210
setContainer(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 221
boolean checkIfPermalinkIsAvailable(string $permalink)

Check permalink availability. Permalink must be unique on database level

Parameters

string $permalink

Return Value

boolean

at line 231
dispatchStaticPageActionEvent(StaticPage $staticPage)

Dispatch static page action (save, edit) event

Parameters

StaticPage $staticPage