public function OrderItem::getOrderId in Commerce Core 8.2
Gets the parent order ID.
Return value
int|null The order ID, or NULL.
Overrides OrderItemInterface::getOrderId
File
- modules/
order/ src/ Entity/ OrderItem.php, line 63
Class
- OrderItem
- Defines the order item entity class.
Namespace
Drupal\commerce_order\EntityCode
public function getOrderId() {
return $this
->get('order_id')->target_id;
}