You are here

public function PackageType::getWeight in Commerce Shipping 8.2

Same name in this branch
  1. 8.2 src/Entity/PackageType.php \Drupal\commerce_shipping\Entity\PackageType::getWeight()
  2. 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\Entity

Code

public function getWeight() {
  return $this->weight;
}