OverrideUserMailRequired.php in Administer Users by Role 8.3
Same filename and directory in other branches
Namespace
Drupal\administerusersbyrole\ConstraintFile
src/Constraint/OverrideUserMailRequired.phpView source
<?php
namespace Drupal\administerusersbyrole\Constraint;
use Drupal\user\Plugin\Validation\Constraint\UserMailRequired;
/**
* 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.
*/
class OverrideUserMailRequired extends UserMailRequired {
}
Classes
Name | Description |
---|---|
OverrideUserMailRequired | Checks if the user's email address is provided if required. |