You are here

public function PromotionInterface::apply in Commerce Core 8.2

Applies the promotion to the given order.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

1 method overrides PromotionInterface::apply()
Promotion::apply in modules/promotion/src/Entity/Promotion.php
Applies the promotion to the given order.

File

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

Class

PromotionInterface
Defines the interface for promotions.

Namespace

Drupal\commerce_promotion\Entity

Code

public function apply(OrderInterface $order);