public function Shipment::getItems in Commerce Shipping 8.2
Gets the shipment items.
Return value
\Drupal\commerce_shipping\ShipmentItem[] The shipment items.
Overrides ShipmentInterface::getItems
3 calls to Shipment::getItems()
- Shipment::getTotalDeclaredValue in src/
Entity/ Shipment.php - Gets the total declared value.
- Shipment::getTotalQuantity in src/
Entity/ Shipment.php - Gets the total quantity.
- Shipment::recalculateWeight in src/
Entity/ Shipment.php - Recalculates the shipment's weight.
File
- src/
Entity/ Shipment.php, line 236
Class
- Shipment
- Defines the shipment entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function getItems() {
return $this
->get('items')
->getShipmentItems();
}