You are here

public function SmartDateTimezoneWidget::getTimezones in Smart Date 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
  2. 3.0.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
  3. 3.1.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
  4. 3.2.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
  5. 3.3.x src/Plugin/Field/FieldWidget/SmartDateTimezoneWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateTimezoneWidget::getTimezones()
  6. 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 126

Class

SmartDateTimezoneWidget
Plugin implementation of the 'smartdate_timezone' widget.

Namespace

Drupal\smart_date\Plugin\Field\FieldWidget

Code

public function getTimezones() {
  return system_time_zones(FALSE, TRUE);
}