You are here

public function PromotionInterface::setConditions in Commerce Core 8.2

Sets the conditions.

Parameters

\Drupal\commerce\Plugin\Commerce\Condition\ConditionInterface[] $conditions: The conditions.

Return value

$this

1 method overrides PromotionInterface::setConditions()
Promotion::setConditions in modules/promotion/src/Entity/Promotion.php
Sets the conditions.

File

modules/promotion/src/Entity/PromotionInterface.php, line 150

Class

PromotionInterface
Defines the interface for promotions.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setConditions(array $conditions);