Loading core/modules/help/src/HelpTwigExtension.php +9 −11 Original line number Diff line number Diff line Loading @@ -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() */ Loading @@ -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. Loading Loading @@ -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() */ Loading Loading
core/modules/help/src/HelpTwigExtension.php +9 −11 Original line number Diff line number Diff line Loading @@ -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() */ Loading @@ -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. Loading Loading @@ -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() */ Loading