You are here

class OverrideUserMailRequired in Administer Users by Role 8.3

Same name and namespace in other branches
  1. 8.2 src/Constraint/OverrideUserMailRequired.php \Drupal\administerusersbyrole\Constraint\OverrideUserMailRequired

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 permission to set empty user mail. This allows users without email address to be edited and deleted.

Hierarchy

Expanded class hierarchy of OverrideUserMailRequired

File

src/Constraint/OverrideUserMailRequired.php, line 14

Namespace

Drupal\administerusersbyrole\Constraint
View source
class OverrideUserMailRequired extends UserMailRequired {

}

Members

Namesort descending Modifiers Type Description Overrides
UserMailRequired::$message public property Violation message. Use the same message as FormValidator.