public function 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\CoreCode
public function setAbsolute($absolute = TRUE) { $this->options['absolute'] = $absolute; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Url.php/function/Url::setAbsolute/8.1.x