You are here

public function BundleItemOrderItem::getOrderItem in Commerce Product Bundle 8

Gets the parent order item.

Return value

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

Overrides BundleItemOrderItemInterface::getOrderItem

File

src/Entity/BundleItemOrderItem.php, line 145

Class

BundleItemOrderItem
Defines the Bundle Item Order Item entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

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