You are here

EmailValidatorInterface.php in Drupal 8

Same filename and directory in other branches
  1. 9 core/lib/Drupal/Component/Utility/EmailValidatorInterface.php

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

Namesort descending Description
EmailValidatorInterface Validates email addresses.