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
- class \Drupal\range\Plugin\Validation\Constraint\RangeBothValuesRequiredConstraint extends \Symfony\Component\Validator\Constraint
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\ConstraintView source
class RangeBothValuesRequiredConstraint extends Constraint {
public $message = 'Both range values (FROM and TO) are required.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RangeBothValuesRequiredConstraint:: |
public | property |