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

Breadcrumb

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

class Email

Same name in this branch
  1. 11.1.x vendor/symfony/mime/Email.php \Symfony\Component\Mime\Email
  2. 11.1.x vendor/symfony/validator/Constraints/Email.php \Symfony\Component\Validator\Constraints\Email
  3. 11.1.x core/lib/Drupal/Core/TypedData/Plugin/DataType/Email.php \Drupal\Core\TypedData\Plugin\DataType\Email
  4. 11.1.x core/lib/Drupal/Core/Render/Element/Email.php \Drupal\Core\Render\Element\Email
  5. 11.1.x core/modules/field/src/Plugin/migrate/field/Email.php \Drupal\field\Plugin\migrate\field\Email

Hierarchy

  • class \PharIo\Manifest\Email

Expanded class hierarchy of Email

26 string references to 'Email'
AccountSettingsForm::buildForm in core/modules/user/src/AccountSettingsForm.php
Form constructor.
AuthorElement::getEmail in vendor/phar-io/manifest/src/xml/AuthorElement.php
AuthorElement::hasEMail in vendor/phar-io/manifest/src/xml/AuthorElement.php
claro_preprocess_input in core/themes/claro/claro.theme
Implements template_preprocess_HOOK() for input.
CommentForm::form in core/modules/comment/src/CommentForm.php
Gets the actual form array to be built.

... See full list

File

vendor/phar-io/manifest/src/values/Email.php, line 16

Namespace

PharIo\Manifest
View source
class Email {
    
    /** @var string */
    private $email;
    public function __construct(string $email) {
        $this->ensureEmailIsValid($email);
        $this->email = $email;
    }
    public function asString() : string {
        return $this->email;
    }
    private function ensureEmailIsValid(string $url) : void {
        if (filter_var($url, FILTER_VALIDATE_EMAIL) === false) {
            throw new InvalidEmailException();
        }
    }

}

Members

Title Sort descending Modifiers Object type Summary
Email::$email private property @var string
Email::asString public function
Email::ensureEmailIsValid private function
Email::__construct public function
RSS feed
Powered by Drupal