From 08ee5a91a12114b2b42023ba670ba2dad51ac42f Mon Sep 17 00:00:00 2001 From: Lee Rowlands <lee.rowlands@previousnext.com.au> Date: Fri, 9 Aug 2019 07:41:12 +1000 Subject: [PATCH] Issue #3073410 by shashikant_chauhan: TwigExtension::getUrl() declares the wrong return type --- core/lib/Drupal/Core/Template/TwigExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php index b7f51ecb1f39..db6e080b5f94 100644 --- a/core/lib/Drupal/Core/Template/TwigExtension.php +++ b/core/lib/Drupal/Core/Template/TwigExtension.php @@ -249,8 +249,8 @@ public function getPath($name, $parameters = [], $options = []) { * (optional) An associative array of additional options. The 'absolute' * option is forced to be TRUE. * - * @return string - * The generated absolute URL for the given route. + * @return array + * A render array with generated absolute URL for the given route. * * @todo Add an option for scheme-relative URLs. */ -- GitLab