You are here

public function PromotionEvent::__construct in Commerce Core 8.2

Constructs a new PromotionEvent.

Parameters

\Drupal\commerce_promotion\Entity\PromotionInterface $promotion: The promotion.

File

modules/promotion/src/Event/PromotionEvent.php, line 28

Class

PromotionEvent
Defines the promotion event.

Namespace

Drupal\commerce_promotion\Event

Code

public function __construct(PromotionInterface $promotion) {
  $this->promotion = $promotion;
}