You are here

public function PackageTypeInterface::getWeight in Commerce Shipping 8.2

Same name in this branch
  1. 8.2 src/Entity/PackageTypeInterface.php \Drupal\commerce_shipping\Entity\PackageTypeInterface::getWeight()
  2. 8.2 src/Plugin/Commerce/PackageType/PackageTypeInterface.php \Drupal\commerce_shipping\Plugin\Commerce\PackageType\PackageTypeInterface::getWeight()

Gets the package type weight.

This is the weight of an empty package.

Return value

\Drupal\physical\Weight The package type weight.

1 method overrides PackageTypeInterface::getWeight()
PackageType::getWeight in src/Plugin/Commerce/PackageType/PackageType.php
Gets the package type weight.

File

src/Plugin/Commerce/PackageType/PackageTypeInterface.php, line 67

Class

PackageTypeInterface
Defines the interface for package types.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\PackageType

Code

public function getWeight();