class RestTestConstraint
Same name in other branches
- 9 core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php \Drupal\rest_test\Plugin\Validation\Constraint\RestTestConstraint
- 8.9.x core/modules/rest/tests/modules/rest_test/src/Plugin/Validation/Constraint/RestTestConstraint.php \Drupal\rest_test\Plugin\Validation\Constraint\RestTestConstraint
- 10 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.
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 16
Namespace
Drupal\rest_test\Plugin\Validation\ConstraintView source
class RestTestConstraint extends SymfonyConstraint {
public $message = 'REST test validation failed';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
RestTestConstraint::$message | public | property |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.