protected function GTMContainer::pathContext in GoogleTagManager 7.2
File
- includes/
entity/ container.inc, line 442
Class
- GTMContainer
- Defines the container configuration entity.
Code
protected function pathContext($paths) {
// Compare the lowercase path alias (if any) and internal path.
$paths = drupal_strtolower($paths);
$path = drupal_strtolower(drupal_get_path_alias($_GET['q']));
$satisfied = drupal_match_path($path, $paths);
// @todo Lowercase $_GET['q'] before comparison? What is purpose of this check?
if ($path != $_GET['q']) {
$satisfied = $satisfied || drupal_match_path($_GET['q'], $paths);
}
return $satisfied;
}