class WishlistAssignEvent in Commerce Wishlist 8.3
Defines the wishlist assign event.
Hierarchy
- class \Drupal\commerce_wishlist\Event\WishlistAssignEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of WishlistAssignEvent
See also
\Drupal\commerce_wishlist\Event\WishlistEvents
1 file declares its use of WishlistAssignEvent
File
- src/
Event/ WishlistAssignEvent.php, line 14
Namespace
Drupal\commerce_wishlist\EventView source
class WishlistAssignEvent extends Event {
/**
* The wishlist entity.
*
* @var \Drupal\commerce_wishlist\Entity\WishlistInterface
*/
protected $wishlist;
/**
* The user account.
*
* @var \Drupal\user\UserInterface
*/
protected $account;
/**
* Constructs a new WishlistAssignEvent.
*
* @param \Drupal\commerce_wishlist\Entity\WishlistInterface $wishlist
* The wishlist entity.
* @param \Drupal\user\UserInterface $account
* The user account.
*/
public function __construct(WishlistInterface $wishlist, UserInterface $account) {
$this->wishlist = $wishlist;
$this->account = $account;
}
/**
* Gets the wishlist entity.
*
* @return \Drupal\commerce_wishlist\Entity\WishlistInterface
* The wishlist entity.
*/
public function getWishlist() {
return $this->wishlist;
}
/**
* Gets the user account.
*
* @return \Drupal\user\UserInterface
* The user account.
*/
public function getAccount() {
return $this->account;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WishlistAssignEvent:: |
protected | property | The user account. | |
WishlistAssignEvent:: |
protected | property | The wishlist entity. | |
WishlistAssignEvent:: |
public | function | Gets the user account. | |
WishlistAssignEvent:: |
public | function | Gets the wishlist entity. | |
WishlistAssignEvent:: |
public | function | Constructs a new WishlistAssignEvent. |