You are here

protected function DateRecurBasicWidget::getTimeZoneOptions in Recurring Dates Field 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getTimeZoneOptions()
  2. 3.0.x src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getTimeZoneOptions()
  3. 3.1.x src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getTimeZoneOptions()

Get a list of time zones suitable for a select field.

Return value

array A list of time zones where keys are PHP time zone codes, and values are human readable and translatable labels.

1 call to DateRecurBasicWidget::getTimeZoneOptions()
DateRecurBasicWidget::formElement in src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php
Returns the form for a single field widget.

File

src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php, line 210

Class

DateRecurBasicWidget
Basic RRULE widget.

Namespace

Drupal\date_recur\Plugin\Field\FieldWidget

Code

protected function getTimeZoneOptions() : array {
  return \system_time_zones(TRUE, TRUE);
}