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()); }
Please login to continue.