public function Url::setFragment

Set the fragment part of the URL

Parameters

string $fragment Fragment to set:

Return value

Url

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Url.php, line 468

Class

Url
Parses and generates URLs based on URL parts. In favor of performance, URL parts are not validated.

Namespace

Guzzle\Http

Code

public function setFragment($fragment) {
  $this->fragment = $fragment;
  return $this;
}