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

__construct(SlideManager $slideManager)

Constructor

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

Parameters

SlideManager $slideManager

at line 56
getFunctions()

{@inheritdoc}

at line 73
array getSlides(String $locale)

Find slides for requested locale

Parameters

String $locale

Return Value

array

at line 89
string getSlidesCache(string $theme, string $httpHost, string|array $locale)

Parameters

string $theme
string $httpHost
string|array $locale

Return Value

string

at line 99
string getName()

Returns the name of the extension.

Return Value

string The extension name

at line 111
array getEntitiesForBlockElementsExtension(array $ids)

Find slides for blocks by ids

Parameters

array $ids

Return Value

array

at line 121
SliderSettings getSliderSettings()

Get slide settings from cache

Return Value

SliderSettings