function Url::isRouted

Same name in other branches
  1. 9 core/lib/Drupal/Core/Url.php \Drupal\Core\Url::isRouted()
  2. 8.9.x core/lib/Drupal/Core/Url.php \Drupal\Core\Url::isRouted()
  3. 11.x 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 553

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

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

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