Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserMailRequired.php

UserMailRequired::$message

Violation message. Use the same message as FormValidator.

Note that the name argument is not sanitized so that translators only have one string to translate. The name is sanitized in self::validate().

Type: string

File

core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php, line 30

Class

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

Namespace

Drupal\user\Plugin\Validation\Constraint

Code

public $message = '@name field is required.';

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal