Skip to content
Snippets Groups Projects

Automated Project Update Bot fixes

3 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -23,7 +23,7 @@ class Timezones extends ListOptionsBase {
* {@inheritdoc}
*/
public function getListOptions(FieldStorageDefinitionInterface $definition, FieldableEntityInterface $entity = NULL, &$cacheable = TRUE) {
return system_time_zones();
return \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Datetime\TimeZoneFormHelper::getOptionsList(), fn() => system_time_zones());
}
}
Loading