You are here

public function Url::isRouted in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::isRouted()
  2. 10 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::isRouted()

Indicates if this Url has a Drupal route.

Return value

bool

2 calls to Url::isRouted()
Url::access in core/lib/Drupal/Core/Url.php
Checks this Url object against applicable access check services.
Url::toUriString in core/lib/Drupal/Core/Url.php
Generates a URI string that represents the data in the Url object.

File

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

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

public function isRouted() {
  return !$this->unrouted;
}