public function AlterProductPurchasedEntityEvent::getPurchasedEntity in Commerce Google Tag Manager 8.2
Same name and namespace in other branches
- 8 src/Event/AlterProductPurchasedEntityEvent.php \Drupal\commerce_google_tag_manager\Event\AlterProductPurchasedEntityEvent::getPurchasedEntity()
Get the purchased entity or null if not available.
Return value
\Drupal\commerce\PurchasableEntityInterface|null The purchased entity.
File
- src/
Event/ AlterProductPurchasedEntityEvent.php, line 80
Class
- AlterProductPurchasedEntityEvent
- Event to alter the Enhanced Ecommerce product.
Namespace
Drupal\commerce_google_tag_manager\EventCode
public function getPurchasedEntity() {
return $this->purchasedEntity;
}