You are here

public function PromotionInterface::setOrderTypes in Commerce Core 8.2

Sets the promotion order types.

Parameters

\Drupal\commerce_order\Entity\OrderTypeInterface[] $order_types: The promotion order types.

Return value

$this

1 method overrides PromotionInterface::setOrderTypes()
Promotion::setOrderTypes in modules/promotion/src/Entity/Promotion.php
Sets the promotion order types.

File

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

Class

PromotionInterface
Defines the interface for promotions.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setOrderTypes(array $order_types);