public function GoogleAdwordsPathTracker::matchCurrentRoute in Google AdWords Conversion Tracking 8
Return an array of PathConfigs that match the current route
@returns \Drupal\google_adwords_path\Entity\GoogleAdwordsPathConfig[]
1 call to GoogleAdwordsPathTracker::matchCurrentRoute()
- GoogleAdwordsPathTracker::registerCurrentRoute in modules/
google_adwords_path/ src/ GoogleAdwordsPathTracker.php - Handler Routing finished event to register any path configs that match with the adwords tracker
File
- modules/
google_adwords_path/ src/ GoogleAdwordsPathTracker.php, line 171 - Contains Drupal\google_adwords_path\GoogleAdwordsPathTracker.
Class
- GoogleAdwordsPathTracker
- Class GoogleAdwordsPathTracker.
Namespace
Drupal\google_adwords_pathCode
public function matchCurrentRoute() {
/**
* @var string[] array of string paths
*/
$paths = [
Url::fromRoute('<current>')
->getInternalPath(),
$this->current_route_match
->getRouteObject()
->getPath(),
];
return $this
->matchPaths($paths);
}