You are here

public function Promotion::getOrderTypes in Commerce Core 8.2

Gets the promotion order types.

Return value

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

Overrides PromotionInterface::getOrderTypes

File

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

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

public function getOrderTypes() {
  return $this
    ->get('order_types')
    ->referencedEntities();
}