class EmpireChangedPriceExtension extends Twig_Extension

Class EmpireChangedPriceExtension is injected as empire_changed_price_plugin.twig_extension service. EmpireChangedPriceExtension handles the logic and provides necessary data for managed entity in twig.

Properties

protected ChangedPriceManager $changedPriceManager

Methods

__construct(ChangedPriceManager $changedPriceManager, AvailabilityNotificationManager $availabilityNotificationManager)

EmpireChangedPriceExtension constructor.

getFunctions()

{@inheritdoc}

array|false
getWatchlistForUser()

Find all products in watchlist for logged user

array|bool
getAvailabilityListForUser()

Find all products that logged user is watching for frontend

Details

at line 48
__construct(ChangedPriceManager $changedPriceManager, AvailabilityNotificationManager $availabilityNotificationManager)

EmpireChangedPriceExtension constructor.

Parameters

ChangedPriceManager $changedPriceManager
AvailabilityNotificationManager $availabilityNotificationManager

at line 57
getFunctions()

{@inheritdoc}

at line 70
array|false getWatchlistForUser()

Find all products in watchlist for logged user

Return Value

array|false

at line 84
array|bool getAvailabilityListForUser()

Find all products that logged user is watching for frontend

Return Value

array|bool