public function EventsController::__construct in Commerce Google Tag Manager 8.2
Same name and namespace in other branches
- 8 src/Controller/EventsController.php \Drupal\commerce_google_tag_manager\Controller\EventsController::__construct()
Constructs the EventsController object.
Parameters
\Drupal\commerce_google_tag_manager\EventStorageService $event_storage: The Commerce GTM event storage.
File
- src/
Controller/ EventsController.php, line 31
Class
- EventsController
- A controller to receive the tracked Enhanced Ecommerce events.
Namespace
Drupal\commerce_google_tag_manager\ControllerCode
public function __construct(EventStorageService $event_storage) {
$this->eventStorage = $event_storage;
}