public function GoogleAdwordsPathTracker::matchPaths in Google AdWords Conversion Tracking 8
Parameters
string[] $paths:
Return value
\Drupal\google_adwords_path\Entity\GoogleAdwordsPathConfig[]
2 calls to GoogleAdwordsPathTracker::matchPaths()
- GoogleAdwordsPathTracker::matchCurrentRoute in modules/
google_adwords_path/ src/ GoogleAdwordsPathTracker.php - Return an array of PathConfigs that match the current route
- GoogleAdwordsPathTracker::matchRoute in modules/
google_adwords_path/ src/ GoogleAdwordsPathTracker.php - Match Route object to an Adwords Conversion Path
File
- modules/
google_adwords_path/ src/ GoogleAdwordsPathTracker.php, line 204 - Contains Drupal\google_adwords_path\GoogleAdwordsPathTracker.
Class
- GoogleAdwordsPathTracker
- Class GoogleAdwordsPathTracker.
Namespace
Drupal\google_adwords_pathCode
public function matchPaths(array $paths) {
/**
* @var \Drupal\google_adwords_path\Entity\GoogleAdwordsPathConfig[] $configs
*/
$configs = [];
foreach ($paths as $path) {
/**
* @var string|array $path
*/
$configs += $this
->matchPath($path);
}
return $configs;
}