You are here

public function EmailValidatorInterface::isValid in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Utility/EmailValidatorInterface.php \Drupal\Component\Utility\EmailValidatorInterface::isValid()
  2. 9 core/lib/Drupal/Component/Utility/EmailValidatorInterface.php \Drupal\Component\Utility\EmailValidatorInterface::isValid()

Validates an email address.

Parameters

string $email: A string containing an email address.

Return value

bool TRUE if the address is valid.

File

core/lib/Drupal/Component/Utility/EmailValidatorInterface.php, line 19

Class

EmailValidatorInterface
Validates email addresses.

Namespace

Drupal\Component\Utility

Code

public function isValid($email);