3 namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
5 use Symfony\Component\Validator\Constraint;
8 * Supports validating all primitive types.
11 * id = "PrimitiveType",
12 * label = @Translation("Primitive type", context = "Validation")
15 class PrimitiveTypeConstraint extends Constraint {
17 public $message = 'This value should be of the correct primitive type.';