TimeConstraint.php in Time Field For Drupal 8.x / 9.x 8
Same filename and directory in other branches
File
src/Plugin/Validation/Constraint/TimeConstraint.phpView source
<?php
namespace Drupal\time_field\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Checks that the submitted value is a unique integer.
*
* @Constraint(
* id = "time",
* label = @Translation("Time", context = "Validation"),
* type = "string"
* )
*/
class TimeConstraint extends Constraint {
public static $message = 'This value is not a valid time.';
}
Classes
Name | Description |
---|---|
TimeConstraint | Checks that the submitted value is a unique integer. |