class EmailValidator extends EmailValidator implements EmailValidatorInterface (View source)

Validates email addresses.

Methods

bool
isValid(string $email, EmailValidation $email_validation = NULL)

Validates an email address.

Details

bool isValid(string $email, EmailValidation $email_validation = NULL)

Validates an email address.

Parameters

string $email

A string containing an email address.

EmailValidation $email_validation

This argument is ignored. If it is supplied an error will be triggered. See https://www.drupal.org/node/2997196.

Return Value

bool

TRUE if the address is valid.