You are here

public function UserMailRequired::validatedBy in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php \Drupal\user\Plugin\Validation\Constraint\UserMailRequired::validatedBy()

Returns the name of the class that validates this constraint.

By default, this is the fully qualified name of the constraint class suffixed with "Validator". You can override this method to change that behaviour.

Return value

string

Overrides Constraint::validatedBy

File

core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php, line 53
Contains \Drupal\user\Plugin\Validation\Constraint\UserMailRequired.

Class

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

Namespace

Drupal\user\Plugin\Validation\Constraint

Code

public function validatedBy() {
  return get_class($this);
}