RoleExistsConstraint::$message

The error message if validation fails.

Type: string

File

core/modules/user/src/Plugin/Validation/Constraint/RoleExistsConstraint.php, line 25

Class

RoleExistsConstraint
Checks if a role exists.

Namespace

Drupal\user\Plugin\Validation\Constraint

Code

public $message = "The role with id '@rid' does not exist.";

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.