public function ShipmentManagerInterface::applyRate in Commerce Shipping 8.2
Applies the given shipping rate to the given shipment.
Parameters
\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The shipment.
\Drupal\commerce_shipping\ShippingRate $rate: The shipping rate.
1 method overrides ShipmentManagerInterface::applyRate()
- ShipmentManager::applyRate in src/
ShipmentManager.php - Applies the given shipping rate to the given shipment.
File
- src/
ShipmentManagerInterface.php, line 20
Class
- ShipmentManagerInterface
- Manages shipments.
Namespace
Drupal\commerce_shippingCode
public function applyRate(ShipmentInterface $shipment, ShippingRate $rate);