public function ShippingMethodInterface::setWeight in Commerce Shipping 8.2
Sets the shipping method weight.
Parameters
int $weight: The shipping method weight.
Return value
$this
1 method overrides ShippingMethodInterface::setWeight()
- ShippingMethod::setWeight in src/
Entity/ ShippingMethod.php - Sets the shipping method weight.
File
- src/
Entity/ ShippingMethodInterface.php, line 95
Class
- ShippingMethodInterface
- Defines the interface for shipping methods.
Namespace
Drupal\commerce_shipping\EntityCode
public function setWeight($weight);