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

string
getName()

Returns the name of the extension.

Details

at line 33
__construct(StaticPageManager $staticPageManger, StaticPageCategoryManager $staticPageCategoryManager)

EmpireStaticPagePluginExtension constructor.

Parameters

StaticPageManager $staticPageManger
StaticPageCategoryManager $staticPageCategoryManager

at line 42
getFunctions()

{@inheritdoc}

at line 58
mixed getLastNPosts(mixed $theme, string $locale)

Get latest static pages

Parameters

mixed $theme
string $locale

Return Value

mixed

at line 66
getEntitiesForBlockElementsExtension($ids)

Parameters

$ids

at line 74
getCategoriesForBlockElementsExtension($ids)

Parameters

$ids

at line 83
string getName()

Returns the name of the extension.

Return Value

string The extension name