public function Shipment::getOrderId in Commerce Shipping 8.2
Gets the parent order ID.
Return value
int|null The order ID, or NULL if unknown.
Overrides ShipmentInterface::getOrderId
1 call to Shipment::getOrderId()
- Shipment::urlRouteParameters in src/
Entity/ Shipment.php - Gets an array of placeholders for this entity.
File
- src/
Entity/ Shipment.php, line 134
Class
- Shipment
- Defines the shipment entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function getOrderId() {
return $this
->get('order_id')->target_id;
}