public function ShipmentInterface::getPackageType in Commerce Shipping 8.2
Gets the package type.
Return value
\Drupal\commerce_shipping\Plugin\Commerce\PackageType\PackageTypeInterface|null The shipment package type, or NULL if unknown.
1 method overrides ShipmentInterface::getPackageType()
- Shipment::getPackageType in src/
Entity/ Shipment.php - Gets the package type.
File
- src/
Entity/ ShipmentInterface.php, line 57
Class
- ShipmentInterface
- Defines the interface for shipments.
Namespace
Drupal\commerce_shipping\EntityCode
public function getPackageType();