public function ShipmentInterface::getWeight in Commerce Shipping 8.2
Gets the shipment weight.
Calculated by adding the weight of each item to the weight of the package type.
Return value
\Drupal\physical\Weight|null The shipment weight, or NULL if unknown.
1 method overrides ShipmentInterface::getWeight()
- Shipment::getWeight in src/
Entity/ Shipment.php - Gets the shipment weight.
File
- src/
Entity/ ShipmentInterface.php, line 234
Class
- ShipmentInterface
- Defines the interface for shipments.
Namespace
Drupal\commerce_shipping\EntityCode
public function getWeight();