function GeneratedUrl::setGeneratedUrl

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/GeneratedUrl.php \Drupal\Core\GeneratedUrl::setGeneratedUrl()
  2. 10 core/lib/Drupal/Core/GeneratedUrl.php \Drupal\Core\GeneratedUrl::setGeneratedUrl()
  3. 11.x core/lib/Drupal/Core/GeneratedUrl.php \Drupal\Core\GeneratedUrl::setGeneratedUrl()

Sets the generated URL.

Parameters

string $generated_url: The generated URL.

Return value

$this

File

core/lib/Drupal/Core/GeneratedUrl.php, line 39

Class

GeneratedUrl
Used to return generated URLs, along with associated bubbleable metadata.

Namespace

Drupal\Core

Code

public function setGeneratedUrl($generated_url) {
    $this->generatedUrl = $generated_url;
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.