Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Url.php

function Url::isExternal

Indicates if this URL is external.

Return value

bool

File

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

Class

Url
Defines an object that holds information about a URL.

Namespace

Drupal\Core

Code

public function isExternal() {
    return $this->external;
}
RSS feed
Powered by Drupal