function Url::isExternal

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

Indicates if this Url is external.

Return value

bool

File

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

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

public function isExternal() {
    return $this->external;
}

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