public function PackageTypeInterface::setDimensions in Commerce Shipping 8.2
Sets the package type dimensions.
Parameters
array $dimensions: An array with the following keys: length, width, height, unit.
Return value
$this
1 method overrides PackageTypeInterface::setDimensions()
- PackageType::setDimensions in src/
Entity/ PackageType.php - Sets the package type dimensions.
File
- src/
Entity/ PackageTypeInterface.php, line 28
Class
- PackageTypeInterface
- Defines the interface for package type configuration entities.
Namespace
Drupal\commerce_shipping\EntityCode
public function setDimensions(array $dimensions);