You are here

public function InvoiceItem::getOrderItem in Commerce Invoice 8.2

Gets the order item.

Return value

\Drupal\commerce_order\Entity\OrderItemInterface|null The order item, or NULL.

Overrides InvoiceItemInterface::getOrderItem

File

src/Entity/InvoiceItem.php, line 302

Class

InvoiceItem
Defines the invoice item entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getOrderItem() {
  return $this
    ->get('order_item_id')->entity;
}