public static Link::createFromRoute($text, $route_name, $route_parameters = array(), $options = array())
Creates a Link object from a given route name and parameters.
string $text: The text of the link.
string $route_name: The name of the route
array $route_parameters: (optional) An associative array of parameter names and values.
array $options: (optional) An associative array of additional options, with the following elements:
static
public static function createFromRoute($text, $route_name, $route_parameters = array(), $options = array()) { return new static($text, new Url($route_name, $route_parameters, $options)); }
© 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!Link.php/function/Link::createFromRoute/8.1.x