class UserMailRequired extends Constraint (View source)

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

The user mail field is NOT required if account originally had no mail set and the user performing the edit has 'administer users' permission. This allows users without email address to be edited and deleted.

Properties

string $message

Violation message. Use the same message as FormValidator.