Url::setAbsolute

public Url::setAbsolute($absolute = TRUE)

Sets the value of the absolute option for this Url.

Parameters

bool $absolute: (optional) Whether to make this Url absolute or not. Defaults to TRUE.

Return value

$this

File

core/lib/Drupal/Core/Url.php, line 704

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

public function setAbsolute($absolute = TRUE) {
  $this->options['absolute'] = $absolute;
  return $this;
}
doc_Drupal
2016-10-29 09:51:42
Comments
Leave a Comment

Please login to continue.