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\EventCode
public function getEntity() {
return $this->entity;
}