Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
Link.php
function Link::getUrl
Returns the URL of the link.
Return value
\Drupal\Core\Url
File
core/
lib/
Drupal/
Core/
Link.php
, line 133
Class
Link
Defines an object that holds information about a link.
Namespace
Drupal\Core
Code
public
function
getUrl
() {
return
$this
->
url
; }
RSS feed