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\EntityCode
public function setOrderTypeIds(array $order_type_ids) {
$this
->set('order_types', $order_type_ids);
return $this;
}