public function ShipmentItem::getWeight in Commerce Shipping 8.2
Gets the weight.
Represents the weight of the entire shipment item (unit weight * quantity).
Return value
\Drupal\physical\Weight The weight.
File
- src/
ShipmentItem.php, line 121
Class
- ShipmentItem
- Represents a shipment item.
Namespace
Drupal\commerce_shippingCode
public function getWeight() : Weight {
return $this->weight;
}