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

\Drupal\physical\Weight The package type weight.

Overrides PackageTypeInterface::getWeight

File

src/Plugin/Commerce/PackageType/PackageType.php, line 108

Class

PackageType
Defines the class for package types.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\PackageType

Code

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