You are here

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

Match Route object to an Adwords Conversion Path

@returns \Drupal\google_adwords_path\Entity\GoogleAdwordsPathConfig[]

Parameters

\Symfony\Component\Routing\Route $route to match to:

File

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

Class

GoogleAdwordsPathTracker
Class GoogleAdwordsPathTracker.

Namespace

Drupal\google_adwords_path

Code

public function matchRoute(Route $route) {

  /**
   * @var string[] array of paths to match from the route
   */
  $paths = [
    $route
      ->getPath(),
  ];
  return $this
    ->matchPaths($paths);
}