Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EmailValidatorInterface.php

interface EmailValidatorInterface

Validates email addresses.

Hierarchy

  • interface \Drupal\Component\Utility\EmailValidatorInterface

Expanded class hierarchy of EmailValidatorInterface

All classes that implement EmailValidatorInterface

3 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
UserPasswordForm.php in core/modules/user/src/Form/UserPasswordForm.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

Title Sort descending Modifiers Object type Summary
EmailValidatorInterface::isValid public function Validates an email address.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal