EmpirePluginSlidesExtension
class EmpirePluginSlidesExtension extends Twig_Extension
Class EmpirePluginSlidesExtension is injected as twig.extension.empire_plugin.slider service. EmpirePluginSlidesExtension handles the logic and provides necessary data for managed entity in twig.
Constants
| CACHED_SLIDER |
Slider cache key |
| CACHED_SETTINGS |
Slider settings cache key |
Properties
| protected SlideManager | $slideManager |
Methods
getFunctions()
{@inheritdoc}
array
getSlides(String $locale)
Find slides for requested locale
string
getSlidesCache(string $theme, string $httpHost, string|array $locale)
No description
string
getName()
Returns the name of the extension.
array
getEntitiesForBlockElementsExtension(array $ids)
Find slides for blocks by ids
getSliderSettings()
Get slide settings from cache
Details
at line 48
__construct(SlideManager $slideManager)
Constructor
at line 56
getFunctions()
{@inheritdoc}
at line 73
array
getSlides(String $locale)
Find slides for requested locale
at line 89
string
getSlidesCache(string $theme, string $httpHost, string|array $locale)
at line 99
string
getName()
Returns the name of the extension.
at line 111
array
getEntitiesForBlockElementsExtension(array $ids)
Find slides for blocks by ids
at line 121
SliderSettings
getSliderSettings()
Get slide settings from cache