class RestTestConstraint in Drupal 9
Same name and namespace in other branches
- 8 core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php \Drupal\rest_test\Plugin\Validation\Constraint\RestTestConstraint
Adds some validations for a REST test field.
Plugin annotation
@Constraint(
id = "rest_test_validation",
label = @Translation("REST test validation", context = "Validation")
)
Hierarchy
- class \Drupal\rest_test\Plugin\Validation\Constraint\RestTestConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of RestTestConstraint
See also
\Drupal\Core\TypedData\OptionsProviderInterface
File
- core/
modules/ rest/ tests/ modules/ rest_test/ src/ Plugin/ Validation/ Constraint/ RestTestConstraint.php, line 17
Namespace
Drupal\rest_test\Plugin\Validation\ConstraintView source
class RestTestConstraint extends Constraint {
public $message = 'REST test validation failed';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RestTestConstraint:: |
public | property |