class DateRecurTimeZoneConstraint in Recurring Dates Field 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurTimeZoneConstraint
- 3.0.x src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurTimeZoneConstraint
- 3.1.x src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurTimeZoneConstraint
Checks the time zone is a recognized zone.
Plugin annotation
@Constraint(
id = "DateRecurTimeZone",
label = @Translation("Valid Time Zone", context = "Validation"),
type = "string"
)
Hierarchy
- class \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurTimeZoneConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of DateRecurTimeZoneConstraint
File
- src/
Plugin/ Validation/ Constraint/ DateRecurTimeZoneConstraint.php, line 18
Namespace
Drupal\date_recur\Plugin\Validation\ConstraintView source
class DateRecurTimeZoneConstraint extends Constraint {
/**
* Violation message for an invalid time zone.
*
* @var string
*/
public $invalidTimeZone = '%value is not a valid time zone.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DateRecurTimeZoneConstraint:: |
public | property | Violation message for an invalid time zone. |