You are here

OverrideUserMailRequired.php in Administer Users by Role 8.3

Same filename and directory in other branches
  1. 8.2 src/Constraint/OverrideUserMailRequired.php

File

src/Constraint/OverrideUserMailRequired.php
View 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

Namesort descending Description
OverrideUserMailRequired Checks if the user's email address is provided if required.