public Link::setText($text) Sets the new text of the link
The text of the link. Type: string File core/lib/Drupal/Core/Link
public Link::setUrl(Url $url) Sets the URL of this link
public Link::toString() Generates the HTML for this Link
public static Link::createFromRoute($text, $route_name, $route_parameters = array(), $options =
public Link::toRenderable() Returns a render array representation
public Link::getText() Returns the text of the link.
Defines an object that holds information about a link. Hierarchy class \Drupal\Core\
public static Link::fromTextAndUrl($text, Url $url) Creates
public Link::__construct($text, Url $url) Constructs a
Page 1 of 2