Closed
Description
Hello,
This doc : https://symfony.com/doc/current/reference/forms/types/text.html said that it's actually not possible to use "attr" option on a TextType but when we use it, it's ok and the 'attr' is affected to the field.
Example of config :
'id' => 'MyId',
'type' => TextType::class?
'options' => [
'label' => 'MyLabel',
'label_attr' => ['class' => 'control-label'],
'attr' => ['class' => 'form-control']
]