public function FilterShippingMethodsEvent::setShippingMethods in Commerce Shipping 8.2
Sets the shipping methods.
Parameters
\Drupal\commerce_shipping\Entity\ShippingMethodInterface[] $shipping_methods: The shipping methods.
Return value
$this
File
- src/
Event/ FilterShippingMethodsEvent.php, line 60
Class
- FilterShippingMethodsEvent
- Defines the event for filtering the available shipping methods.
Namespace
Drupal\commerce_shipping\EventCode
public function setShippingMethods(array $shipping_methods) {
$this->shippingMethods = $shipping_methods;
return $this;
}