Commit d27916b
committed
bug #1193 [StimulusBundle] feat: normalize parameters names given to twig helper 'stimulus_action' (norival)
This PR was merged into the 2.x branch.
Discussion
----------
[StimulusBundle] feat: normalize parameters names given to twig helper 'stimulus_action'
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| Tickets | NA
| License | MIT
This allows giving a parameter name as 'myParam', and it will be printed as 'data-controller-name-my-param-param', which will be interpreted as 'myParam' by the Stimulus controller.
Commits
-------
ed02dad [StimulusBundle] feat: normalize parameters names given to twig helper 'stimulus_action()'File tree
3 files changed
+22
-1
lines changed- src/StimulusBundle
- src/Dto
- tests/Twig
3 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
3 | 12 | | |
4 | 13 | | |
5 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
202 | 212 | | |
203 | 213 | | |
204 | 214 | | |
| |||
0 commit comments