I need a way to get the human-readable label of a form field without rendering the whole form. Unfortunately, the logic that I need is currently implemented in Twig templates:
Symfony Forms have lots of logic in the templates. Maybe we can take a look if it's possible to move most of that logic, not only the field labels, back to PHP?
Description
I need a way to get the human-readable label of a form field without rendering the whole form. Unfortunately, the logic that I need is currently implemented in Twig templates:
symfony/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
Lines 299 to 323 in ce227a1
Do you think it's possible to extract it into a service to make it reusable outside of the rendering process?
Example
No response
The text was updated successfully, but these errors were encountered: