You are here

public function Url::isExternal in Drupal 10

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

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

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