function GeneratedLink::setGeneratedLink

Same name in other branches
  1. 9 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::setGeneratedLink()
  2. 8.9.x core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::setGeneratedLink()
  3. 10 core/lib/Drupal/Core/GeneratedLink.php \Drupal\Core\GeneratedLink::setGeneratedLink()

Sets the generated link.

Parameters

string $generated_link: The generated link.

Return value

$this

File

core/lib/Drupal/Core/GeneratedLink.php, line 46

Class

GeneratedLink
Used to return generated links, along with associated cacheability metadata.

Namespace

Drupal\Core

Code

public function setGeneratedLink($generated_link) {
    $this->generatedLink = $generated_link;
    return $this;
}

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