DateRecurTimeZoneConstraint.php in Recurring Dates Field 3.1.x
File
src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.phpView source
<?php
declare (strict_types=1);
namespace Drupal\date_recur\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Checks the time zone is a recognized zone.
*
* @Constraint(
* id = "DateRecurTimeZone",
* label = @Translation("Valid Time Zone", context = "Validation"),
* type = "string"
* )
*/
class DateRecurTimeZoneConstraint extends Constraint {
/**
* Violation message for an invalid time zone.
*
* @var string
*/
public $invalidTimeZone = '%value is not a valid time zone.';
}
Classes
Name | Description |
---|---|
DateRecurTimeZoneConstraint | Checks the time zone is a recognized zone. |