You are here

public function EmailConstraint::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\EmailConstraint::__construct()
  2. 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\EmailConstraint::__construct()

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailConstraint.php, line 22

Class

EmailConstraint
Count constraint.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public function __construct($options = []) {
  $options += [
    'mode' => 'strict',
  ];
  parent::__construct($options);
}