public function ShippingMethodInterface::setConditions in Commerce Shipping 8.2
Sets the shipping method conditions.
Parameters
\Drupal\commerce\Plugin\Commerce\Condition\ConditionInterface[] $conditions: The conditions.
Return value
$this
1 method overrides ShippingMethodInterface::setConditions()
- ShippingMethod::setConditions in src/
Entity/ ShippingMethod.php - Sets the shipping method conditions.
File
- src/
Entity/ ShippingMethodInterface.php, line 59
Class
- ShippingMethodInterface
- Defines the interface for shipping methods.
Namespace
Drupal\commerce_shipping\EntityCode
public function setConditions(array $conditions);