public function PackageTypeInterface::setWeight in Commerce Shipping 8.2
Sets the package type weight.
Parameters
array $weight: An array with the following keys: number, unit.
Return value
$this
1 method overrides PackageTypeInterface::setWeight()
- PackageType::setWeight in src/
Entity/ PackageType.php - Sets the package type weight.
File
- src/
Entity/ PackageTypeInterface.php, line 48
Class
- PackageTypeInterface
- Defines the interface for package type configuration entities.
Namespace
Drupal\commerce_shipping\EntityCode
public function setWeight(array $weight);