You are here

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\Entity

Code

public function setConditions(array $conditions);