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

array An array with the following keys: number, unit.

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

File

src/Entity/PackageTypeInterface.php, line 38

Class

PackageTypeInterface
Defines the interface for package type configuration entities.

Namespace

Drupal\commerce_shipping\Entity

Code

public function getWeight();