public function AlterProductEvent::getProductVariation in Commerce Google Tag Manager 8
Same name and namespace in other branches
- 8.2 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\EventCode
public function getProductVariation() {
return $this->productVariation;
}