protected function DateRecurBasicWidget::getTimeZoneOptions in Recurring Dates Field 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getTimeZoneOptions()
- 3.x src/Plugin/Field/FieldWidget/DateRecurBasicWidget.php \Drupal\date_recur\Plugin\Field\FieldWidget\DateRecurBasicWidget::getTimeZoneOptions()
- 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\FieldWidgetCode
protected function getTimeZoneOptions() : array {
return \system_time_zones(TRUE, TRUE);
}