These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Encore\Admin\Form\Field; |
||
4 | |||
5 | use DateTimeZone; |
||
6 | |||
7 | class Timezone extends Select |
||
8 | { |
||
9 | protected $view = 'admin::form.select'; |
||
10 | |||
11 | public function render() |
||
12 | { |
||
13 | $this->options = collect(DateTimeZone::listIdentifiers(DateTimeZone::ALL))->mapWithKeys(function ($timezone) { |
||
14 | return [$timezone => $timezone]; |
||
15 | })->toArray(); |
||
16 | |||
17 | return parent::render(); |
||
0 ignored issues
–
show
Bug
Compatibility
introduced
by
Loading history...
|
|||
18 | } |
||
19 | } |
||
20 |