You are here

public function FilterVariationsEvent::getProduct in Commerce Core 8.2

Gets the parent product.

Return value

\Drupal\commerce_product\Entity\ProductInterface The parent product.

File

modules/product/src/Event/FilterVariationsEvent.php, line 43

Class

FilterVariationsEvent

Namespace

Drupal\commerce_product\Event

Code

public function getProduct() {
  return $this->product;
}