You are here

public function ProductEvent::__construct in Commerce Core 8.2

Constructs a new ProductEvent.

Parameters

\Drupal\commerce_product\Entity\ProductInterface $product: The product.

File

modules/product/src/Event/ProductEvent.php, line 28

Class

ProductEvent
Defines the product event.

Namespace

Drupal\commerce_product\Event

Code

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