You are here

class RangeBothValuesRequiredConstraint in Range 8

Defines a both values are required validation constraint.

Plugin annotation


@Constraint(
  id = "RangeBothValuesRequired",
  label = @Translation("Both range values (FROM and TO) are required.", context = "Validation"),
)

Hierarchy

Expanded class hierarchy of RangeBothValuesRequiredConstraint

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

File

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

Namespace

Drupal\range\Plugin\Validation\Constraint
View source
class RangeBothValuesRequiredConstraint extends Constraint {
  public $message = 'Both range values (FROM and TO) are required.';

}

Members