You are here

public function EmailValidatorInterface::isValid in Drupal 8

Same name and namespace in other branches
  1. 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.

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);