public function WishlistItem::getPurchasableEntity in Commerce Wishlist 8.3
Gets the purchasable entity.
Return value
\Drupal\commerce\PurchasableEntityInterface|null The purchasable entity, or NULL.
Overrides WishlistItemInterface::getPurchasableEntity
1 call to WishlistItem::getPurchasableEntity()
- WishlistItem::getTitle in src/
Entity/ WishlistItem.php - Gets the wishlist item title.
File
- src/
Entity/ WishlistItem.php, line 98
Class
- WishlistItem
- Defines the wishlist item entity class.
Namespace
Drupal\commerce_wishlist\EntityCode
public function getPurchasableEntity() {
return $this
->get('purchasable_entity')->entity;
}