3 namespace Drupal\rest_test\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Adds some validations for a REST test field.
11 * id = "rest_test_validation",
12 * label = @Translation("REST test validation", context = "Validation")
15 * @see \Drupal\Core\TypedData\OptionsProviderInterface
17 class RestTestConstraint extends Constraint {
19 public $message = 'REST test validation failed';