public function Url::setOptions
public Url::setOptions($options)
Sets the URL options.
Parameters
array $options: The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains.
Return value
$this
File
- core/lib/Drupal/Core/Url.php, line 655
Class
- Url
- Defines an object that holds information about a URL.
Namespace
Drupal\CoreCode
public function setOptions($options) { $this->options = $options; 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::setOptions/8.1.x