Loading tour_enhancements.module +6 −6 Original line number Diff line number Diff line Loading @@ -31,16 +31,16 @@ function tour_enhancements_page_bottom(array &$page_bottom) { $params = $route_match->getRawParameters()->all(); // Include 'bundle' as parameter to use as match. // You could also add additional if (ie if a node had a specific field). if ($params = $route_match->getParameter('node')) { $params['bundle'] = $route_match->getParameter('node')->bundle(); if (($node = $route_match->getParameter('node')) && ($node instanceof \Drupal\node\NodeInterface)) { $params['bundle'] = $node->bundle(); } // Get the Taxonomy Vocabulary. if ($params = $route_match->getParameter('taxonomy_vocabulary')) { $params['bundle'] = $route_match->getParameter('taxonomy_vocabulary')->id(); if (($vocab = $route_match->getParameter('taxonomy_vocabulary')) && ($vocab instanceof \Drupal\taxonomy\VocabularyInterface)) { $params['bundle'] = $vocab->id(); } // Get the Taxonomy Vocabulary from a term. if ($params = $route_match->getParameter('taxonomy_term')) { $params['bundle'] = $route_match->getParameter('taxonomy_term')->bundle(); if (($term = $route_match->getParameter('taxonomy_term')) && ($term instanceof \Drupal\taxonomy\TermInterface)) { $params['bundle'] = $term->bundle(); } // Match on the parameters. if (!$tour->hasMatchingRoute($route_name, $params)) { Loading Loading
tour_enhancements.module +6 −6 Original line number Diff line number Diff line Loading @@ -31,16 +31,16 @@ function tour_enhancements_page_bottom(array &$page_bottom) { $params = $route_match->getRawParameters()->all(); // Include 'bundle' as parameter to use as match. // You could also add additional if (ie if a node had a specific field). if ($params = $route_match->getParameter('node')) { $params['bundle'] = $route_match->getParameter('node')->bundle(); if (($node = $route_match->getParameter('node')) && ($node instanceof \Drupal\node\NodeInterface)) { $params['bundle'] = $node->bundle(); } // Get the Taxonomy Vocabulary. if ($params = $route_match->getParameter('taxonomy_vocabulary')) { $params['bundle'] = $route_match->getParameter('taxonomy_vocabulary')->id(); if (($vocab = $route_match->getParameter('taxonomy_vocabulary')) && ($vocab instanceof \Drupal\taxonomy\VocabularyInterface)) { $params['bundle'] = $vocab->id(); } // Get the Taxonomy Vocabulary from a term. if ($params = $route_match->getParameter('taxonomy_term')) { $params['bundle'] = $route_match->getParameter('taxonomy_term')->bundle(); if (($term = $route_match->getParameter('taxonomy_term')) && ($term instanceof \Drupal\taxonomy\TermInterface)) { $params['bundle'] = $term->bundle(); } // Match on the parameters. if (!$tour->hasMatchingRoute($route_name, $params)) { Loading