You are here

public static function UrlValidator::urlIsExternal in Mini site 8

Check if the URL is external.

6 calls to UrlValidator::urlIsExternal()
PageProcessor::processTagA in src/PageProcessor.php
Process <a> tag.
PageProcessor::processTagLink in src/PageProcessor.php
Process <link> tag.
UrlValidator::relativeToRoot in src/UrlValidator.php
Convert relative to root-level URL with parent prefix support.
UrlValidator::rootToRelative in src/UrlValidator.php
Convert root-level URL to relative URL with parent prefix support.
UrlValidator::urlIsRoot in src/UrlValidator.php
Check if the URL is a root-level relative URL.

... See full list

File

src/UrlValidator.php, line 17

Class

UrlValidator
Class UrlValidator.

Namespace

Drupal\minisite

Code

public static function urlIsExternal($url) {
  return UrlHelper::isExternal($url);
}