function EmailValidatorInterface::isValid

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Utility/EmailValidatorInterface.php \Drupal\Component\Utility\EmailValidatorInterface::isValid()
  2. 10 core/lib/Drupal/Component/Utility/EmailValidatorInterface.php \Drupal\Component\Utility\EmailValidatorInterface::isValid()
  3. 11.x 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.

1 method overrides EmailValidatorInterface::isValid()
EmailValidator::isValid in core/lib/Drupal/Component/Utility/EmailValidator.php
Validates an email address.

File

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

Class

EmailValidatorInterface
Validates email addresses.

Namespace

Drupal\Component\Utility

Code

public function isValid($email);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.