You are here

public function Promotion::setOrderTypeIds in Commerce Core 8.2

Sets the promotion order type IDs.

Parameters

int[] $order_type_ids: The promotion order type IDs.

Return value

$this

Overrides PromotionInterface::setOrderTypeIds

File

modules/promotion/src/Entity/Promotion.php, line 209

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

public function setOrderTypeIds(array $order_type_ids) {
  $this
    ->set('order_types', $order_type_ids);
  return $this;
}