public function ProductEvent::getProduct in Commerce Core 8.2
Gets the product.
Return value
\Drupal\commerce_product\Entity\ProductInterface The product.
File
- modules/
product/ src/ Event/ ProductEvent.php, line 38
Class
- ProductEvent
- Defines the product event.
Namespace
Drupal\commerce_product\EventCode
public function getProduct() {
return $this->product;
}