class FooterExtension extends Twig_Extension

Class FooterExtension is injected as twig.extension.empire.footer service. FooterExtension handles the logic and provides necessary data for managed entity in twig.

Constants

CACHED_FOOTER

Cache key

Methods

__construct(mixed $cache, EventDispatcherInterface $dispatcher)

FooterExtension constructor.

getFunctions()

{@inheritdoc}

bool
getFooterCache(mixed $locale)

Get footer from cache or generate cache

string
getName()

Returns the name of the extension.

Details

at line 45
__construct(mixed $cache, EventDispatcherInterface $dispatcher)

FooterExtension constructor.

Parameters

mixed $cache
EventDispatcherInterface $dispatcher

at line 54
getFunctions()

{@inheritdoc}

at line 68
bool getFooterCache(mixed $locale)

Get footer from cache or generate cache

Parameters

mixed $locale

Return Value

bool

at line 87
string getName()

Returns the name of the extension.

Return Value

string The extension name