public function OrderItem::getPurchasedEntity in Commerce Core 8.2
Gets the purchased entity.
Return value
\Drupal\commerce\PurchasableEntityInterface|null The purchased entity, or NULL.
Overrides OrderItemInterface::getPurchasedEntity
File
- modules/
order/ src/ Entity/ OrderItem.php, line 77
Class
- OrderItem
- Defines the order item entity class.
Namespace
Drupal\commerce_order\EntityCode
public function getPurchasedEntity() {
return $this
->getTranslatedReferencedEntity('purchased_entity');
}