Newer
Older
Dries Buytaert
committed
<?php
Angie Byron
committed
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
Dries Buytaert
committed
Alex Pott
committed
use Symfony\Component\Validator\Constraint;
Dries Buytaert
committed
/**
* Supports validating all primitive types.
*
* @Constraint(
Dries Buytaert
committed
* id = "PrimitiveType",
* label = @Translation("Primitive type", context = "Validation")
* )
*/
Alex Pott
committed
class PrimitiveTypeConstraint extends Constraint {
Dries Buytaert
committed
Alex Pott
committed
public $message = 'This value should be of the correct primitive type.';