Verified Commit b65e6289 authored by godotislate's avatar godotislate
Browse files

refactor: #3582386 remove absolute from HelpTwigExtension links

By: joachim
By: catch
(cherry picked from commit 1ab3da43)
parent 55368a2f
Loading
Loading
Loading
Loading
Loading
+9 −11
Original line number Diff line number Diff line
@@ -58,14 +58,13 @@ public function getFunctions(): array {
   * @param array $parameters
   *   (optional) An associative array of route parameter names and values.
   * @param array $options
   *   (optional) An associative array of additional options. The 'absolute'
   *   option is forced to be TRUE.
   *   (optional) An associative array of additional options.
   *
   * @return array
   *   A render array with a generated absolute link to the given route. If
   *   the user does not have permission for the route, or an exception occurs,
   *   such as a missing route or missing parameters, the render array is for
   *   the link text as a plain string instead.
   *   A render array with a generated link to the given route. If the user does
   *   not have permission for the route, or an exception occurs, such as a
   *   missing route or missing parameters, the render array is for the link
   *   text as a plain string instead.
   *
   * @see \Drupal\Core\Template\TwigExtension::getUrl()
   */
@@ -80,7 +79,6 @@ public function getRouteLink(string $text, string $route, array $parameters = []
      $bubbles->addCacheableDependency($access_object);

      if ($access_object->isAllowed()) {
        $options['absolute'] = TRUE;
        $url = Url::fromRoute($route, $parameters, $options);
        // Generate the URL to check for parameter problems and collect
        // cache metadata.
@@ -112,10 +110,10 @@ public function getRouteLink(string $text, string $route, array $parameters = []
   *   The help topic ID.
   *
   * @return array
   *   A render array with a generated absolute link to the given topic. If
   *   the user does not have permission to view the topic, or an exception
   *   occurs, such as the topic not being defined due to a module not being
   *   installed, a default string is returned.
   *   A render array with a generated link to the given topic. If the user does
   *   not have permission to view the topic, or an exception occurs, such as
   *   the topic not being defined due to a module not being installed, a
   *   default string is returned.
   *
   * @see \Drupal\Core\Template\TwigExtension::getUrl()
   */