public function Link::setUrl in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Link.php \Drupal\Core\Link::setUrl()
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 135 - Contains \Drupal\Core\Link.
Class
- Link
- Defines an object that holds information about a link.
Namespace
Drupal\CoreCode
public function setUrl(Url $url) {
$this->url = $url;
return $this;
}