Commit c4da47e2 authored by Sean Dietrich's avatar Sean Dietrich Committed by Jim Birch
Browse files

Issue #3326285 by thejimbirch, sean_e_dietrich: WSOD thanks to 1.0.2

parent c780c801
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -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)) {