You are here

RangeFromGreaterToConstraint.php in Range 8

File

src/Plugin/Validation/Constraint/RangeFromGreaterToConstraint.php
View source
<?php

namespace Drupal\range\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Defines a FROM value is higher than TO value validation constraint.
 *
 * @Constraint(
 *   id = "RangeFromGreaterTo",
 *   label = @Translation("The FROM value is greater than the TO value.", context = "Validation"),
 * )
 */
class RangeFromGreaterToConstraint extends Constraint {
  public $message = 'The FROM value is higher than the TO value.';

}

Classes

Namesort descending Description
RangeFromGreaterToConstraint Defines a FROM value is higher than TO value validation constraint.