Commit 647a1488 authored by Gopi Ramanujam's avatar Gopi Ramanujam Committed by Gopi Ramanujam
Browse files

Issue #3266088 by gopisathya: module uninstall issue:...

Issue #3266088 by gopisathya: module uninstall issue: InvalidArgumentException: The controller for URI "" is not callable.
parent 1bc19c53
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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)] = [