BlogPostContainer
class BlogPostContainer
Class BlogPostContainer is injected as alligator.blog.post.event.container. This container is connecting BlogPost manager to other services
Traits
Constants
| BLOG_POST_LASTN_FRONTEND_CACHE |
Key for caching latest blog posts |
Methods
No description
BlogPostContainer constructor.
No description
No description
No description
Get logget user, null if not logged
Dispatch signal to re-cache blog category tree structure
Dispatch find custom logic for previous and next blog post
Remove all comments from blog post and remove it from blog category
No description
Get reference on cache client
Set latest blog posts to cache
Dispatch signal to re-cache sidebar blog categories
Dispatch signal to re-cache latest blog posts
No description
Check if blog sidebar is cached
Set new request
Find all locales
Set data to cache for provided key
No description
No description
Check if permalink is valid
Details
in LanguageEntityRelationshipEventContainerTrait at line 27
mixed
dispatchLanguageRelatedEntityEvent(string $class, array $paramBag, string $locale)
at line 49
__construct(ContainerInterface $container)
BlogPostContainer constructor.
at line 57
BlogPostManager
getBlogPostManager()
at line 65
prepareSaveBlogPost(BlogPost $blogPost)
Dispatch event for prepare save blog post
at line 74
prepareEditBlogPost(BlogPost $blogPost)
Dispatch event for prepare edit blog post
at line 82
Translator
getTranslator()
at line 89
ImageManager
getImageManager()
at line 97
User|null
getLoggedUser()
Get logget user, null if not logged
at line 114
void
setLoggedUserToBlogPost(BlogPost $blogPost)
Sets a logged user on blog post
at line 125
dispatchTeeGenerateSignal(string $locale)
Dispatch signal to re-cache blog category tree structure
at line 136
mixed
dispatchFindPrevAndNext(int $blogPostId)
Dispatch find custom logic for previous and next blog post
at line 152
prepareForDeleteBlogPost(array $blogPostArray)
Remove all comments from blog post and remove it from blog category
at line 164
BlogCategoryManager
getBlogCategoryManager()
at line 173
object
getCache()
Get reference on cache client
at line 185
mixed
setLastNBlogPostForFrontend(string $data, string|null $locale = null)
Set latest blog posts to cache
at line 197
BlogPostSidebarSignalEvent
dispatchBlogSidebarSignalEvent(string $theme, string $locale)
Dispatch signal to re-cache sidebar blog categories
at line 207
dispatchBlogNewsSignalEvent(string $theme, string $locale)
Dispatch signal to re-cache latest blog posts
at line 215
mixed
getTemplating()
at line 226
mixed
checkIfBlogSidebarIsCached(string|null $locale = null)
Check if blog sidebar is cached
at line 234
setNewRequest()
Set new request
at line 243
array
getAllLocales()
Find all locales
at line 255
mixed
setDataToCache(string $data, string $key)
Set data to cache for provided key
at line 263
ContainerInterface
getContainer()
at line 271
setContainer(ContainerInterface $container)
at line 282
bool
checkIfPermalinkIsAvailable(string $permalink)
Check if permalink is valid
at line 291
dispatchBlogPostActionEvent(BlogPost $blogPost)
Dispatch blog post action (save, edit) event