Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / Validation / Plugin / Validation / Constraint / PrimitiveTypeConstraint.php
1 <?php
2
3 namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraint;
6
7 /**
8  * Supports validating all primitive types.
9  *
10  * @Constraint(
11  *   id = "PrimitiveType",
12  *   label = @Translation("Primitive type", context = "Validation")
13  * )
14  */
15 class PrimitiveTypeConstraint extends Constraint {
16
17   public $message = 'This value should be of the correct primitive type.';
18
19 }