You are here

public function ShippingMethodInterface::selectRate in Commerce Shipping 8.2

Selects the given shipping rate for the given shipment.

Parameters

\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The shipment.

\Drupal\commerce_shipping\ShippingRate $rate: The shipping rate.

1 method overrides ShippingMethodInterface::selectRate()
ShippingMethodBase::selectRate in src/Plugin/Commerce/ShippingMethod/ShippingMethodBase.php
Selects the given shipping rate for the given shipment.

File

src/Plugin/Commerce/ShippingMethod/ShippingMethodInterface.php, line 68

Class

ShippingMethodInterface
Defines the base interface for shipping methods.

Namespace

Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod

Code

public function selectRate(ShipmentInterface $shipment, ShippingRate $rate);