You are here

public function AlterProductEvent::getProduct 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::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\Event

Code

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