public function Shipment::getOrder in Commerce Shipping 8.2
Gets the parent order.
Return value
\Drupal\commerce_order\Entity\OrderInterface|null The order, or NULL if unknown.
Overrides ShipmentInterface::getOrder
File
- src/
Entity/ Shipment.php, line 127
Class
- Shipment
- Defines the shipment entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function getOrder() {
return $this
->get('order_id')->entity;
}