You are here

public function Url::getOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::getOptions()
  2. 10 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 634

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

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