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\EventCode
public function __construct(ProductInterface $product) {
$this->product = $product;
}