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

Breadcrumb

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

function Url::ensureUrlIsValid

Throws

InvalidUrlException

1 call to Url::ensureUrlIsValid()
Url::__construct in vendor/phar-io/manifest/src/values/Url.php

File

vendor/phar-io/manifest/src/values/Url.php, line 33

Class

Url

Namespace

PharIo\Manifest

Code

private function ensureUrlIsValid(string $url) : void {
    if (filter_var($url, FILTER_VALIDATE_URL) === false) {
        throw new InvalidUrlException();
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal