You are here

public function ShippingRatesEvent::setRates in Commerce Shipping 8.2

Sets the shipping rates.

Parameters

\Drupal\commerce_shipping\ShippingRate[] $rates: The shipping rates.

File

src/Event/ShippingRatesEvent.php, line 69

Class

ShippingRatesEvent
Defines the event for reacting to shipping rate calculation.

Namespace

Drupal\commerce_shipping\Event

Code

public function setRates(array $rates) {
  $this->rates = $rates;
}