public function Link::setUrl
public Link::setUrl(Url $url)
Sets the URL of this link.
Parameters
Url $url: The URL object to set
Return value
$this
File
- core/lib/Drupal/Core/Link.php, line 130
Class
- Link
- Defines an object that holds information about a link.
Namespace
Drupal\CoreCode
public function setUrl(Url $url) { $this->url = $url; return $this; }
© 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::setUrl/8.1.x