You are here

public property UserMailRequired::$message in Drupal 9

Same name and namespace in other branches
  1. 8 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\Constraint

Code

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