Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Link.php

function 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 145

Class

Link
Defines an object that holds information about a link.

Namespace

Drupal\Core

Code

public function setUrl(Url $url) {
    $this->url = $url;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal