class WishlistEvent in Commerce Wishlist 8.3
Defines the wishlist event.
Hierarchy
- class \Drupal\commerce_wishlist\Event\WishlistEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of WishlistEvent
See also
\Drupal\commerce_wishlist\Event\WishlistEvents
File
- src/
Event/ WishlistEvent.php, line 13
Namespace
Drupal\commerce_wishlist\EventView source
class WishlistEvent extends Event {
/**
* The wishlist.
*
* @var \Drupal\commerce_wishlist\Entity\WishlistInterface
*/
protected $wishlist;
/**
* Constructs a new WishlistEvent object.
*
* @param \Drupal\commerce_wishlist\Entity\WishlistInterface $wishlist
* The wishlist.
*/
public function __construct(WishlistInterface $wishlist) {
$this->wishlist = $wishlist;
}
/**
* Gets the wishlist.
*
* @return \Drupal\commerce_wishlist\Entity\WishlistInterface
* Gets the wishlist.
*/
public function getWishlist() {
return $this->wishlist;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WishlistEvent:: |
protected | property | The wishlist. | |
WishlistEvent:: |
public | function | Gets the wishlist. | |
WishlistEvent:: |
public | function | Constructs a new WishlistEvent object. |