You are here

public function WishlistEntityAddEvent::getEntity in Commerce Wishlist 8.3

Gets the added entity.

Return value

\Drupal\commerce\PurchasableEntityInterface The added entity.

File

src/Event/WishlistEntityAddEvent.php, line 80

Class

WishlistEntityAddEvent
Defines the wishlist entity add event.

Namespace

Drupal\commerce_wishlist\Event

Code

public function getEntity() {
  return $this->entity;
}