public function PackageType::getWeight in Commerce Shipping 8.2
Same name in this branch
- 8.2 src/Entity/PackageType.php \Drupal\commerce_shipping\Entity\PackageType::getWeight()
- 8.2 src/Plugin/Commerce/PackageType/PackageType.php \Drupal\commerce_shipping\Plugin\Commerce\PackageType\PackageType::getWeight()
Gets the package type weight.
This is the weight of an empty package.
Return value
array An array with the following keys: number, unit.
Overrides PackageTypeInterface::getWeight
File
- src/
Entity/ PackageType.php, line 104
Class
- PackageType
- Defines the package type entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function getWeight() {
return $this->weight;
}