WishlistEventContainer
class WishlistEventContainer
Class WishlistEventContainer is injected as empire_wishlists_plugin.event.container. This container is connecting WishlistManager manager to other services
Constants
| WISHLIST_ADD_PRODUCT_EVENT |
Product add to wishlist Event name |
Properties
| protected ContainerInterface | $container |
Methods
__construct(ContainerInterface $container)
No description
array
getUsersWithProductInWishList(int $productId, Pricelist|null $priceList = null)
Get emails for all user who have specified product in wishlist
sendProductPriceChangedMail(array $params)
Send mail if product price has changed
string
getCurrentCurrency()
Get current currency from session
dispatchShouldAddProductToWishlist()
Dispatch custom event
Details
at line 39
__construct(ContainerInterface $container)
at line 47
User
getUser()
at line 73
array
getUsersWithProductInWishList(int $productId, Pricelist|null $priceList = null)
Get emails for all user who have specified product in wishlist
at line 83
sendProductPriceChangedMail(array $params)
Send mail if product price has changed
at line 105
bool
sendMail(string $friendsMail, Wishlist $wishlist, string $theme)
Send wishlist via email
at line 142
string
getCurrentCurrency()
Get current currency from session
at line 151
EventWithResult
dispatchShouldAddProductToWishlist()
Dispatch custom event