diff --git a/Documentation/ColumnsConfig/Type/Link/_Snippets/_SomeService.php b/Documentation/ColumnsConfig/Type/Link/_Snippets/_SomeService.php index 1ba39478..f2221e17 100644 --- a/Documentation/ColumnsConfig/Type/Link/_Snippets/_SomeService.php +++ b/Documentation/ColumnsConfig/Type/Link/_Snippets/_SomeService.php @@ -11,16 +11,11 @@ public function __construct( private readonly LinkFactory $linkFactory, ) {} - public function getLink(string $tcaLinkValue, ContentObjectRenderer $contentObjectRenderer): string + public function getUri(string $tcaLinkValue, ContentObjectRenderer $contentObjectRenderer): string { - $link = $this->linkFactory->create( - '', - [ - 'parameter' => $tcaLinkValue, - 'forceAbsoluteUrl' => true, - ], + return $this->linkFactory->createUri( + $tcaLinkValue, $contentObjectRenderer ); - return $link->getUrl(); } }