You are here

public function GoogleAdwordsPathTracker::registerCurrentRoute in Google AdWords Conversion Tracking 8

Handler Routing finished event to register any path configs that match with the adwords tracker

See also

eventAPI

1 call to GoogleAdwordsPathTracker::registerCurrentRoute()
GoogleAdwordsPathTracker::event_KernelController in modules/google_adwords_path/src/GoogleAdwordsPathTracker.php
Event handler, register path tracking after the controller has finished

File

modules/google_adwords_path/src/GoogleAdwordsPathTracker.php, line 139
Contains Drupal\google_adwords_path\GoogleAdwordsPathTracker.

Class

GoogleAdwordsPathTracker
Class GoogleAdwordsPathTracker.

Namespace

Drupal\google_adwords_path

Code

public function registerCurrentRoute() {
  foreach ($this
    ->matchCurrentRoute() as $pathConfig) {

    /**
     * @var \Drupal\google_adwords_path\Entity\GoogleAdwordsPathConfig $pathConfig
     */
    $this
      ->registerPathConfig($pathConfig);
  }
}