ab4f1fe15639ca17e49c9779656f8992eefd4e0f
[yaffs-website] / web / core / modules / rest / tests / modules / rest_test / src / Plugin / Validation / Constraint / RestTestConstraint.php
1 <?php
2
3 namespace Drupal\rest_test\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Adds some validations for a REST test field.
9  *
10  * @Constraint(
11  *   id = "rest_test_validation",
12  *   label = @Translation("REST test validation", context = "Validation")
13  * )
14  *
15  * @see \Drupal\Core\TypedData\OptionsProviderInterface
16  */
17 class RestTestConstraint extends Constraint {
18
19   public $message = 'REST test validation failed';
20
21 }