public property UserMailRequired::$message in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php \Drupal\user\Plugin\Validation\Constraint\UserMailRequired::message
- 9 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 29
Class
- UserMailRequired
- Checks if the user's email address is provided if required.
Namespace
Drupal\user\Plugin\Validation\ConstraintCode
public $message = '@name field is required.';