public function WishlistEntityAddEvent::__construct in Commerce Wishlist 8.3
Constructs a new WishlistWishlistItemEvent.
Parameters
\Drupal\commerce_wishlist\Entity\WishlistInterface $wishlist: The wishlist entity.
\Drupal\commerce\PurchasableEntityInterface $entity: The added entity.
float $quantity: The quantity.
\Drupal\commerce_wishlist\Entity\WishlistItemInterface $wishlist_item: The destination wishlist item.
File
- src/
Event/ WishlistEntityAddEvent.php, line 57
Class
- WishlistEntityAddEvent
- Defines the wishlist entity add event.
Namespace
Drupal\commerce_wishlist\EventCode
public function __construct(WishlistInterface $wishlist, PurchasableEntityInterface $entity, $quantity, WishlistItemInterface $wishlist_item) {
$this->wishlist = $wishlist;
$this->entity = $entity;
$this->quantity = $quantity;
$this->wishlistItem = $wishlist_item;
}