public function SmartDateTimezoneWidget::getTimezones in Smart Date 3.2.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
- 3.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
- 3.0.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
- 3.1.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
- 3.3.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
- 3.4.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
Helper function to retrieve available timezones.
2 calls to SmartDateTimezoneWidget::getTimezones()
- SmartDateTimezoneWidget::formElement in src/
Plugin/ Field/ FieldWidget/ SmartDateTimezoneWidget.php - Returns the form for a single field widget.
- SmartDateTimezoneWidget::settingsForm in src/
Plugin/ Field/ FieldWidget/ SmartDateTimezoneWidget.php - Returns a form to configure settings for the widget.
File
- src/
Plugin/ Field/ FieldWidget/ SmartDateTimezoneWidget.php, line 157
Class
- SmartDateTimezoneWidget
- Plugin implementation of the 'smartdate_timezone' widget.
Namespace
Drupal\smart_date\Plugin\Field\FieldWidgetCode
public function getTimezones() {
return system_time_zones(FALSE, TRUE);
}