StoreLocatorPluginExtension
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
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)
at line 34
getFunctions()
{@inheritdoc}
at line 52
array
getEntitiesForBlockElementsExtension(array $ids)
Get entities from database by ids
at line 62
array
getAllAvailableDays()
Get all available days
at line 72
array
getAllAvailableHours()
Get all available hours
at line 84
string
getReadableStringForStoreHours(array $storeHoursArray)
Get text for working hours
at line 94
string
formatStoreTime(string $time)
at line 105
string
getName()
Returns the name of the extension.