You are here

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
WishlistEvent::$wishlist protected property The wishlist.
WishlistEvent::getWishlist public function Gets the wishlist.
WishlistEvent::__construct public function Constructs a new WishlistEvent object.