UserMailRequired::$message

Same name in other branches
  1. 9 core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php \Drupal\user\Plugin\Validation\Constraint\UserMailRequired::message
  2. 8.9.x core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php \Drupal\user\Plugin\Validation\Constraint\UserMailRequired::message
  3. 10 core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php \Drupal\user\Plugin\Validation\Constraint\UserMailRequired::message

Violation message. Use the same message as FormValidator.

Note that the name argument is not sanitized so that translators only have one string to translate. The name is sanitized in self::validate().

Type: string

File

core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php, line 30

Class

UserMailRequired
Checks if the user's email address is provided if required.

Namespace

Drupal\user\Plugin\Validation\Constraint

Code

public $message = '@name field is required.';

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