public function ShippingRatesEvent::getShippingMethod in Commerce Shipping 8.2
Gets the shipping method.
Return value
\Drupal\commerce_shipping\Entity\ShippingMethodInterface The shipping method.
File
- src/
Event/ ShippingRatesEvent.php, line 79
Class
- ShippingRatesEvent
- Defines the event for reacting to shipping rate calculation.
Namespace
Drupal\commerce_shipping\EventCode
public function getShippingMethod() {
return $this->shippingMethod;
}