Commit da5762a
committed
This PR was merged into the 7.4 branch.
Discussion
----------
[Form] Add `input=date_point` to `DateTimeType`, `DateType` and `TimeType`
Fix #21022
```
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
use Symfony\Component\Form\Extension\Core\Type\TimeType;
use Symfony\Component\Form\Extension\Core\Type\BirthdayType;
$builder->add('from', DateType::class, [
'input' => 'date_point',
]);
$builder->add('from', DateTimeType::class, [
'input' => 'date_point',
]);
$builder->add('from', TimeType::class, [
'input' => 'date_point',
]);
$builder->add('from', BirthdayType::class, [
'input' => 'date_point',
]);
Commits
-------
6156dcf [Form] Add input=date_point to DateTimeType, DateType and TimeType
File tree
3 files changed
+3
-0
lines changed- reference/forms/types
- options
3 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
0 commit comments