You are here

public function AlterProductEvent::getProductVariation in Commerce Google Tag Manager 8.2

Same name and namespace in other branches
  1. 8 src/Event/AlterProductEvent.php \Drupal\commerce_google_tag_manager\Event\AlterProductEvent::getProductVariation()

Get the product variation.

Return value

\Drupal\commerce_product\Entity\ProductVariationInterface The product variation object.

File

src/Event/AlterProductEvent.php, line 60

Class

AlterProductEvent
Event to alter the Enhanced Ecommerce product.

Namespace

Drupal\commerce_google_tag_manager\Event

Code

public function getProductVariation() {
  return $this->productVariation;
}