class OverrideUserMailRequired in Administer Users by Role 8.3
Same name and namespace in other branches
- 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
- class \Drupal\user\Plugin\Validation\Constraint\UserMailRequired extends \Symfony\Component\Validator\Constraint
- class \Drupal\administerusersbyrole\Constraint\OverrideUserMailRequired
Expanded class hierarchy of OverrideUserMailRequired
File
- src/
Constraint/ OverrideUserMailRequired.php, line 14
Namespace
Drupal\administerusersbyrole\ConstraintView source
class OverrideUserMailRequired extends UserMailRequired {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UserMailRequired:: |
public | property | Violation message. Use the same message as FormValidator. |