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

Breadcrumb

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

function Email::ensureEmailIsValid

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

File

vendor/phar-io/manifest/src/values/Email.php, line 30

Class

Email

Namespace

PharIo\Manifest

Code

private function ensureEmailIsValid(string $url) : void {
    if (filter_var($url, FILTER_VALIDATE_EMAIL) === false) {
        throw new InvalidEmailException();
    }
}
RSS feed
Powered by Drupal