public function ShipmentInterface::setPackageType in Commerce Shipping 8.2
Sets the package type.
Parameters
\Drupal\commerce_shipping\Plugin\Commerce\PackageType\PackageTypeInterface $package_type: The package type.
Return value
$this
1 method overrides ShipmentInterface::setPackageType()
- Shipment::setPackageType in src/
Entity/ Shipment.php - Sets the package type.
File
- src/
Entity/ ShipmentInterface.php, line 67
Class
- ShipmentInterface
- Defines the interface for shipments.
Namespace
Drupal\commerce_shipping\EntityCode
public function setPackageType(PackageTypePluginInterface $package_type);