Loading jsonld_simple.module +6 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,12 @@ function jsonld_simple_page_attachments_alter(array &$attachments) { // Append the last item. $request = \Drupal::request(); $route_match = \Drupal::routeMatch(); try { $title = \Drupal::service('title_resolver')->getTitle($request, $route_match->getRouteObject()); } catch (\InvalidArgumentException $exception) { $title = NULL; } // If the breadcrumb is the last item in the breadcrumb trail, // item is not required. $items[count($items)] = [ Loading Loading
jsonld_simple.module +6 −1 Original line number Diff line number Diff line Loading @@ -61,7 +61,12 @@ function jsonld_simple_page_attachments_alter(array &$attachments) { // Append the last item. $request = \Drupal::request(); $route_match = \Drupal::routeMatch(); try { $title = \Drupal::service('title_resolver')->getTitle($request, $route_match->getRouteObject()); } catch (\InvalidArgumentException $exception) { $title = NULL; } // If the breadcrumb is the last item in the breadcrumb trail, // item is not required. $items[count($items)] = [ Loading