EmailValidatorInterface.php

Same filename and directory in other branches
  1. 11.x core/lib/Drupal/Component/Utility/EmailValidatorInterface.php
  2. 10 core/lib/Drupal/Component/Utility/EmailValidatorInterface.php
  3. 9 core/lib/Drupal/Component/Utility/EmailValidatorInterface.php
  4. 8.9.x core/lib/Drupal/Component/Utility/EmailValidatorInterface.php

Namespace

Drupal\Component\Utility

File

core/lib/Drupal/Component/Utility/EmailValidatorInterface.php

View source
<?php

namespace Drupal\Component\Utility;


/**
 * Validates email addresses.
 */
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);

}

Interfaces

Title Deprecated Summary
EmailValidatorInterface Validates email addresses.

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