How could I add custom 'help' option to all existing Symfony3 Type's?
In Symfony2, I did it like this http://toni.uebernickel.info/2012/11/03/how-to-extend-form-fields-in-symfony2.1.html but now I'm upgrading to Symfony3 and it does not work any more - it gives me The option "help" does not exist.
http://symfony.com/doc/current/form/form_customization.html#adding-help-messages would work, but it would require to move all help texts into template:
{{ form_widget(form.title, {'help': 'foobar'}) }}
...from Type classes:
->add(
'periodFrom',
TextType::class,
[
'label' => 'period-from',
'required' => false,
'help' => 'period-from.help'
]
)
I'd like to avoid that. Thanks.