public function OrderShipmentSummaryInterface::build in Commerce Shipping 8.2
Builds a summary of the given order's shipments.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
string $view_mode: The view mode used to render the shipments.
Return value
array The renderable array with the shipment summary.
1 method overrides OrderShipmentSummaryInterface::build()
- OrderShipmentSummary::build in src/
OrderShipmentSummary.php - Builds a summary of the given order's shipments.
File
- src/
OrderShipmentSummaryInterface.php, line 25
Class
- OrderShipmentSummaryInterface
- Provides a summary of an order's shipments.
Namespace
Drupal\commerce_shippingCode
public function build(OrderInterface $order, $view_mode = 'user');