function ProtectedUserFieldConstraint::__construct
Same name and namespace in other branches
- 11.x core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraint.php \Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraint::__construct()
Attributes
#[HasNamedArguments]
File
-
core/
modules/ user/ src/ Plugin/ Validation/ Constraint/ ProtectedUserFieldConstraint.php, line 19
Class
- ProtectedUserFieldConstraint
- Checks if the plain text password is provided for editing a protected field.
Namespace
Drupal\user\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public $message = "Your current password is missing or incorrect; it's required to change the %name.", ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.