You are here

public function ShipmentInterface::setShippingMethod in Commerce Shipping 8.2

Sets the shipping method.

Parameters

\Drupal\commerce_shipping\Entity\ShippingMethodInterface $shipping_method: The shipping method.

Return value

$this

1 method overrides ShipmentInterface::setShippingMethod()
Shipment::setShippingMethod in src/Entity/Shipment.php
Sets the shipping method.

File

src/Entity/ShipmentInterface.php, line 85

Class

ShipmentInterface
Defines the interface for shipments.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setShippingMethod(ShippingMethodInterface $shipping_method);