You are here

public function OrderItemInterface::getPurchasedEntity in Commerce Core 8.2

Gets the purchased entity.

Return value

\Drupal\commerce\PurchasableEntityInterface|null The purchased entity, or NULL.

1 method overrides OrderItemInterface::getPurchasedEntity()
OrderItem::getPurchasedEntity in modules/order/src/Entity/OrderItem.php
Gets the purchased entity.

File

modules/order/src/Entity/OrderItemInterface.php, line 45

Class

OrderItemInterface
Defines the interface for order items.

Namespace

Drupal\commerce_order\Entity

Code

public function getPurchasedEntity();