diff --git a/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php b/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php index a199288..1dcb343 100644 --- a/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php +++ b/core/lib/Drupal/Core/Routing/LinkGeneratorTrait.php @@ -36,7 +36,8 @@ * on the arguments, usage, and possible exceptions. * * @return \Drupal\Core\GeneratedLink - * An HTML string containing a link to the given route and parameters. + * A GeneratedLink object containing a link to the given route and + * parameters and bubbleable metadata. */ protected function l($text, Url $url) { return $this->getLinkGenerator()->generate($text, $url); diff --git a/core/lib/Drupal/Core/Utility/LinkGenerator.php b/core/lib/Drupal/Core/Utility/LinkGenerator.php index 4527f77..6eb473b 100644 --- a/core/lib/Drupal/Core/Utility/LinkGenerator.php +++ b/core/lib/Drupal/Core/Utility/LinkGenerator.php @@ -13,7 +13,6 @@ use Drupal\Component\Utility\SafeStringInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\GeneratedLink; -use Drupal\Core\GeneratedUrl; use Drupal\Core\Link; use Drupal\Core\Path\AliasManagerInterface; use Drupal\Core\Render\RendererInterface;