You are here

class TimeConstraint in Time Field For Drupal 8.x / 9.x 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Validation/Constraint/TimeConstraint.php \Drupal\time_field\Plugin\Validation\Constraint\TimeConstraint

Checks that the submitted value is a unique integer.

Plugin annotation


@Constraint(
  id = "time",
  label = @Translation("Time", context = "Validation"),
  type = "string"
)

Hierarchy

  • class \Drupal\time_field\Plugin\Validation\Constraint\TimeConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of TimeConstraint

File

src/Plugin/Validation/Constraint/TimeConstraint.php, line 16

Namespace

Drupal\time_field\Plugin\Validation\Constraint
View source
class TimeConstraint extends Constraint {
  public static $message = 'This value is not a valid time.';

}

Members