function EmailValidator::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailValidator.php \Drupal\Core\Validation\Plugin\Validation\Constraint\EmailValidator::__construct()

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailValidator.php, line 21

Class

EmailValidator
Email constraint.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public function __construct(string $defaultMode = Email::VALIDATION_MODE_HTML5) {
    parent::__construct($defaultMode);
}

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