class StoreLocatorPluginExtension extends Twig_Extension

Class StoreLocatorPluginExtension is injected as alligator.store_locator.plugin.extension service. StoreLocatorPluginExtension handles the logic and provides necessary data for managed entity in twig.

Methods

__construct(StoreManager $storeManager)

No description

getFunctions()

{@inheritdoc}

array
getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

array
getAllAvailableDays()

Get all available days

array
getAllAvailableHours()

Get all available hours

string
getReadableStringForStoreHours(array $storeHoursArray)

Get text for working hours

string
formatStoreTime(string $time)

No description

string
getName()

Returns the name of the extension.

Details

at line 26
__construct(StoreManager $storeManager)

Parameters

StoreManager $storeManager

at line 34
getFunctions()

{@inheritdoc}

at line 52
array getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

Parameters

array $ids

Return Value

array

at line 62
array getAllAvailableDays()

Get all available days

Return Value

array

at line 72
array getAllAvailableHours()

Get all available hours

Return Value

array

at line 84
string getReadableStringForStoreHours(array $storeHoursArray)

Get text for working hours

Parameters

array $storeHoursArray

Return Value

string

at line 94
string formatStoreTime(string $time)

Parameters

string $time

Return Value

string

at line 105
string getName()

Returns the name of the extension.

Return Value

string The extension name