You are here

RangeBothValuesRequiredConstraint.php in Range 8

File

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

namespace Drupal\range\Plugin\Validation\Constraint;

use Symfony\Component\Validator\Constraint;

/**
 * Defines a both values are required validation constraint.
 *
 * @Constraint(
 *   id = "RangeBothValuesRequired",
 *   label = @Translation("Both range values (FROM and TO) are required.", context = "Validation"),
 * )
 */
class RangeBothValuesRequiredConstraint extends Constraint {
  public $message = 'Both range values (FROM and TO) are required.';

}

Classes

Namesort descending Description
RangeBothValuesRequiredConstraint Defines a both values are required validation constraint.