protected LinkGeneratorTrait::l($text, Url $url)
Renders a link to a route given a route name and its parameters.
For details on the arguments, usage, and possible exceptions see \Drupal\Core\Utility\LinkGeneratorInterface::generate().
\Drupal\Core\GeneratedLink A GeneratedLink object containing a link to the given route and parameters and bubbleable metadata.
in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Link instead.
\Drupal\Core\Utility\LinkGeneratorInterface::generate()
protected function l($text, Url $url) { return $this->getLinkGenerator()->generate($text, $url); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!LinkGeneratorTrait.php/function/LinkGeneratorTrait::l/8.1.x