function RestTestConstraint::__construct
Same name and namespace in other branches
- 11.x core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php \Drupal\rest_test\Plugin\Validation\Constraint\RestTestConstraint::__construct()
Attributes
#[HasNamedArguments]
File
-
core/
modules/ rest/ tests/ modules/ rest_test/ src/ Plugin/ Validation/ Constraint/ RestTestConstraint.php, line 23
Class
- RestTestConstraint
- Adds some validations for a REST test field.
Namespace
Drupal\rest_test\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, public string $message = 'REST test validation failed', ?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.