You are here

class RangeFromGreaterToConstraint in Range 8

Defines a FROM value is higher than TO value validation constraint.

Plugin annotation


@Constraint(
  id = "RangeFromGreaterTo",
  label = @Translation("The FROM value is greater than the TO value.", context = "Validation"),
)

Hierarchy

Expanded class hierarchy of RangeFromGreaterToConstraint

1 file declares its use of RangeFromGreaterToConstraint
RangeFromGreaterToConstraintValidatorTest.php in tests/src/Unit/Plugin/Validation/Constraint/RangeFromGreaterToConstraintValidatorTest.php

File

src/Plugin/Validation/Constraint/RangeFromGreaterToConstraint.php, line 15

Namespace

Drupal\range\Plugin\Validation\Constraint
View source
class RangeFromGreaterToConstraint extends Constraint {
  public $message = 'The FROM value is higher than the TO value.';

}

Members