You are here

class DateRecurTimeZoneConstraint in Recurring Dates Field 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurTimeZoneConstraint
  2. 3.0.x src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php \Drupal\date_recur\Plugin\Validation\Constraint\DateRecurTimeZoneConstraint
  3. 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

Expanded class hierarchy of DateRecurTimeZoneConstraint

File

src/Plugin/Validation/Constraint/DateRecurTimeZoneConstraint.php, line 18

Namespace

Drupal\date_recur\Plugin\Validation\Constraint
View source
class DateRecurTimeZoneConstraint extends Constraint {

  /**
   * Violation message for an invalid time zone.
   *
   * @var string
   */
  public $invalidTimeZone = '%value is not a valid time zone.';

}

Members

Namesort descending Modifiers Type Description Overrides
DateRecurTimeZoneConstraint::$invalidTimeZone public property Violation message for an invalid time zone.