public function TrackCheckoutStepEvent::__construct in Commerce Google Tag Manager 8
Same name and namespace in other branches
- 8.2 src/Event/TrackCheckoutStepEvent.php \Drupal\commerce_google_tag_manager\Event\TrackCheckoutStepEvent::__construct()
Constructs a TrackCheckoutStepEvent object.
Parameters
int $step_index: The step index of the checkout step, starting at 1.
\Drupal\commerce_order\Entity\OrderInterface $order: The commerce order representing the current cart.
File
- src/
Event/ TrackCheckoutStepEvent.php, line 37
Class
- TrackCheckoutStepEvent
- Event dispatched when a checkout step is tracked.
Namespace
Drupal\commerce_google_tag_manager\EventCode
public function __construct($step_index, OrderInterface $order) {
$this->stepIndex = $step_index;
$this->order = $order;
}