public function AlterProductEvent::getProduct in Commerce Google Tag Manager 8.2
Same name and namespace in other branches
- 8 src/Event/AlterProductEvent.php \Drupal\commerce_google_tag_manager\Event\AlterProductEvent::getProduct()
Get the product.
Return value
\Drupal\commerce_google_tag_manager\Product The Commerce GTM product object.
File
- src/
Event/ AlterProductEvent.php, line 50
Class
- AlterProductEvent
- Event to alter the Enhanced Ecommerce product.
Namespace
Drupal\commerce_google_tag_manager\EventCode
public function getProduct() {
return $this->product;
}