User::getAllowedTimezones

public static User::getAllowedTimezones()

Defines allowed timezones for the field's AllowedValues constraint.

Return value

string[] The allowed values.

File

core/modules/user/src/Entity/User.php, line 556

Class

User
Defines the user entity class.

Namespace

Drupal\user\Entity

Code

public static function getAllowedTimezones() {
  return array_keys(system_time_zones());
}
doc_Drupal
2016-10-29 09:52:05
Comments
Leave a Comment

Please login to continue.