You are here

public function RulesCommerceProductEvent::__construct in Scheduler 2.x

Constructs the object.

Parameters

Drupal\commerce_product\Entity\ProductInterface $commerce_product: The commerce_product item which is being processed.

File

scheduler_rules_integration/src/Event/RulesCommerceProductEvent.php, line 52

Class

RulesCommerceProductEvent
Class for all Commerce Product events for use in Rules module.

Namespace

Drupal\scheduler_rules_integration\Event

Code

public function __construct(ProductInterface $commerce_product) {
  $this->commerce_product = $commerce_product;
}