BlogCategoryContainer
class BlogCategoryContainer
Class BlogCategoryContainer is injected as alligator.blog.category.event.container. This container is connecting BlogCategory manager to other services
Constants
| BLOG_CATEGORY_SIDE_BAR_CACHE |
Key for caching sidebar blog categories |
| BLOG_NEWS_CACHE |
Key for caching latest blog posts |
Methods
BlogCategoryContainer constructor.
Get reference to blog post container
Prepare blog category for persisting. Hook on blog.category.save.action event
Prepare blog category for merging. Hook on blog.category.edit.action event
Prepare blog category for removing. Hook blog.category.delete.action event
Dispatch signal to re-cache blog category tree structure
Remove images for deleted blog category
Set blog categories to cache
Get blog categories from cache
Get templating engine
Get reference to cache client
Set latest blog posts to cache
Dispatch signal to re-cache blog posts
Dispatch signal to re-cache sidebar blog categories
Get cached latest blog post
Get current locale
Set new request
Get current slug from request
Find all languages
No description
No description
Dispatch signal to re-cache menu items
Find all blog posts for provided blog category parent id
Get custom blog category decorator. Hook on custom.blog_category.decorator.event event
Validate permalink
Details
at line 55
__construct(ContainerInterface $container)
BlogCategoryContainer constructor.
at line 66
BlogPostContainer
getBlogPostContainer()
Get reference to blog post container
at line 76
prepareSaveBlogCategory(BlogCategory $blogCategory, BlogPostContainer $blogPostContainer)
Prepare blog category for persisting. Hook on blog.category.save.action event
at line 86
prepareEditBlogCategory(BlogCategory $blogCategory, BlogPostContainer $blogPostContainer)
Prepare blog category for merging. Hook on blog.category.edit.action event
at line 96
prepareBlogCategoryForDelete(BlogCategory $blogCategory, BlogPostContainer $blogPostContainer)
Prepare blog category for removing. Hook blog.category.delete.action event
at line 109
BlogCategoryTreeSignalEvent
dispatchTeeGenerateSignal(string $locale)
Dispatch signal to re-cache blog category tree structure
at line 120
dispatchRemoveImagesForDeletedCategories(array $imagesIds)
Remove images for deleted blog category
at line 134
mixed
setCashCategoryTree(mixed $data, string|null $locale = null)
Set blog categories to cache
at line 145
mixed
getCashCategoryTree()
Get blog categories from cache
at line 156
mixed
getTemplating()
Get templating engine
at line 165
object
getCache()
Get reference to cache client
at line 179
mixed
setNewsToCache(mixed $data, string|null $locale = null)
Set latest blog posts to cache
at line 192
NewsEventSignalEvent
dispatchBlogNewsSignalEvent(string $theme, string $locale)
Dispatch signal to re-cache blog posts
at line 202
dispatchSidebarBlogsEvent(string $theme, string $locale)
Dispatch signal to re-cache sidebar blog categories
at line 215
mixed
getCachedNews(string|null $locale = null)
Get cached latest blog post
at line 224
mixed
getCurrentLocale()
Get current locale
at line 232
setNewRequest()
Set new request
at line 241
string
getSlug()
Get current slug from request
at line 250
array
getAllLanguages()
Find all languages
at line 258
ContainerInterface
getContainer()
at line 266
setContainer(ContainerInterface $container)
at line 277
dispatchMenuUpdateRemoveSignal(int $id, string $slug, string|null $name = null)
Dispatch signal to re-cache menu items
at line 289
mixed
getIsotopeCategories(int $id, string $locale)
Find all blog posts for provided blog category parent id
at line 300
mixed
dispatchBlogCategoriesDecoratorEvent(string $locale)
Get custom blog category decorator. Hook on custom.blog_category.decorator.event event
at line 311
boolean
checkIfPermalinkIsAvailable(string $permalink)
Validate permalink