merged branch michaelperrin/upgrade_to_21 (PR #4802)
Commits -------81eb722
Simpler sentence concerning upgrade of the form_label functionf6f1bb5
Update to the "Upgrade to v2.1" documentation: the way HTML attributes are passed for the `form_label` function has changed. Discussion ---------- Update upgrade to 2.1 documentation concerning form_label The way HTML attributes are passed for the `form_label` function has changed since this commit :167e64f799
I also made a PR for the documentation: https://github.com/symfony/symfony-docs/pull/1542
This commit is contained in:
commit
fe7e57dfa6
@ -191,7 +191,7 @@
|
||||
implementations of this interface to reflect this change.
|
||||
|
||||
* The `UserPassword` constraint has moved from the Security Bundle to the Security Component:
|
||||
|
||||
|
||||
Before:
|
||||
|
||||
```
|
||||
@ -636,6 +636,20 @@
|
||||
`getChoices()` and `getChoicesByValues()`. For the latter two, no
|
||||
replacement exists.
|
||||
|
||||
* HTML attributes are now passed in the `label_attr` variable for the `form_label` function.
|
||||
|
||||
Before:
|
||||
|
||||
```
|
||||
{{ form_label(form.name, 'Your Name', { 'attr': {'class': 'foo'} }) }}
|
||||
```
|
||||
|
||||
After:
|
||||
|
||||
```
|
||||
{{ form_label(form.name, 'Your Name', { 'label_attr': {'class': 'foo'} }) }}
|
||||
```
|
||||
|
||||
* `EntitiesToArrayTransformer` and `EntityToIdTransformer` were removed.
|
||||
The former was replaced by `CollectionToArrayTransformer` in combination
|
||||
with `EntityChoiceList`, the latter is not required in the core anymore.
|
||||
|
Reference in New Issue
Block a user