public function InvoiceItem::getOrderItemId in Commerce Invoice 8.2
Gets the order item ID.
Return value
int|null The order item ID, or NULL.
Overrides InvoiceItemInterface::getOrderItemId
File
- src/
Entity/ InvoiceItem.php, line 309
Class
- InvoiceItem
- Defines the invoice item entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function getOrderItemId() {
return $this
->get('order_item_id')->target_id;
}