function Url::getOptions

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Url.php \Drupal\Core\Url::getOptions()
  2. 10 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::getOptions()
  3. 11.x core/lib/Drupal/Core/Url.php \Drupal\Core\Url::getOptions()

Returns the URL options.

Return value

array The array of options. See \Drupal\Core\Url::fromUri() for details on what it contains.

2 calls to Url::getOptions()
Url::toRenderArray in core/lib/Drupal/Core/Url.php
Returns the route information for a render array.
Url::toString in core/lib/Drupal/Core/Url.php
Generates the string URL representation for this Url object.

File

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

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

public function getOptions() {
    return $this->options;
}

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