public function ShippingMethodInterface::applies in Commerce Shipping 8.2
Checks whether the shipping method applies to the given shipment.
Ensures that the conditions pass.
Parameters
\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The shipment.
Return value
bool TRUE if shipping method applies, FALSE otherwise.
1 method overrides ShippingMethodInterface::applies()
- ShippingMethod::applies in src/
Entity/ ShippingMethod.php - Checks whether the shipping method applies to the given shipment.
File
- src/
Entity/ ShippingMethodInterface.php, line 126
Class
- ShippingMethodInterface
- Defines the interface for shipping methods.
Namespace
Drupal\commerce_shipping\EntityCode
public function applies(ShipmentInterface $shipment);