You are here

interface EmailValidatorInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Utility/EmailValidatorInterface.php \Drupal\Component\Utility\EmailValidatorInterface

Validates email addresses.

Hierarchy

Expanded class hierarchy of EmailValidatorInterface

All classes that implement EmailValidatorInterface

2 files declare their use of EmailValidatorInterface
ContactFormEditForm.php in core/modules/contact/src/ContactFormEditForm.php
EmailAction.php in core/lib/Drupal/Core/Action/Plugin/Action/EmailAction.php

File

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

Namespace

Drupal\Component\Utility
View source
interface EmailValidatorInterface {

  /**
   * Validates an email address.
   *
   * @param string $email
   *   A string containing an email address.
   *
   * @return bool
   *   TRUE if the address is valid.
   */
  public function isValid($email);

}

Members

Namesort descending Modifiers Type Description Overrides
EmailValidatorInterface::isValid public function Validates an email address. 1