You are here

protected function DateRecurModularUtilityTrait::getTimeZoneOptions in Recurring Date Field Modular Widgets 8

Same name and namespace in other branches
  1. 3.x src/DateRecurModularUtilityTrait.php \Drupal\date_recur_modular\DateRecurModularUtilityTrait::getTimeZoneOptions()
  2. 2.x src/DateRecurModularUtilityTrait.php \Drupal\date_recur_modular\DateRecurModularUtilityTrait::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.

File

src/DateRecurModularUtilityTrait.php, line 184

Class

DateRecurModularUtilityTrait
Trait containing convenience methods for dealing with date recur widgets.

Namespace

Drupal\date_recur_modular

Code

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