From 07ba6860bfb2bac01ba51d763ea949da79482c46 Mon Sep 17 00:00:00 2001 From: Richard Brandon Date: Thu, 24 Mar 2022 11:02:15 -0400 Subject: [PATCH] Fix fatal error when query string is used in URL Error: Class 'Drupal\purl\Utility\UrlHelper' not found in Drupal\purl\Utility\PurlAwareUnroutedUrlAssembler->buildLocalUrlWithPurlContexts() line 111 --- src/Utility/PurlAwareUnroutedUrlAssembler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Utility/PurlAwareUnroutedUrlAssembler.php b/src/Utility/PurlAwareUnroutedUrlAssembler.php index 33bd59f..49370b0 100644 --- a/src/Utility/PurlAwareUnroutedUrlAssembler.php +++ b/src/Utility/PurlAwareUnroutedUrlAssembler.php @@ -3,7 +3,7 @@ namespace Drupal\purl\Utility; - +use Drupal\Component\Utility\UrlHelper; use Drupal\Core\GeneratedUrl; use Drupal\Core\PathProcessor\OutboundPathProcessorInterface; use Drupal\Core\Utility\UnroutedUrlAssembler; @@ -112,4 +112,4 @@ private function buildLocalUrlWithPurlContexts($uri, array $options, $collect_bu $url = $base . $options['script'] . ltrim($uri, '/') . $query . $options['fragment']; return $collect_bubbleable_metadata ? $generated_url->setGeneratedUrl($url) : $url; } -} \ No newline at end of file +}