EmpireStaticPagePluginExtension
class EmpireStaticPagePluginExtension extends Twig_Extension
Class EmpireStaticPagePluginExtension is injected as alligator.static_page_extension service. EmpireStaticPagePluginExtension handles the logic and provides necessary data for managed entity in twig.
Properties
| protected StaticPageManager | $staticPageManger |
Methods
__construct(StaticPageManager $staticPageManger, StaticPageCategoryManager $staticPageCategoryManager)
EmpireStaticPagePluginExtension constructor.
getFunctions()
{@inheritdoc}
mixed
getLastNPosts(mixed $theme, string $locale)
Get latest static pages
getEntitiesForBlockElementsExtension($ids)
No description
getCategoriesForBlockElementsExtension($ids)
No description
string
getName()
Returns the name of the extension.
Details
at line 33
__construct(StaticPageManager $staticPageManger, StaticPageCategoryManager $staticPageCategoryManager)
EmpireStaticPagePluginExtension constructor.
at line 42
getFunctions()
{@inheritdoc}
at line 58
mixed
getLastNPosts(mixed $theme, string $locale)
Get latest static pages
at line 66
getEntitiesForBlockElementsExtension($ids)
at line 74
getCategoriesForBlockElementsExtension($ids)
at line 83
string
getName()
Returns the name of the extension.