File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Filter options
reference/forms/types/options Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ block_name
4
4
**type **: ``string`` **default**: the form' s name (see :ref:`Knowing which
5
5
block to customize <form-customization-sidebar>`)
6
6
7
- Allows you to override the block name used to render the form type.
8
- Useful for example if you have multiple instances of the same form and you
9
- need to personalize the rendering of the forms individually.
7
+ Allows you to add a custom block name to the ones used by default to render the
8
+ form type. Useful for example if you have multiple instances of the same form
9
+ and you need to personalize the rendering of the forms individually.
10
+
11
+ If you set for example this option to ``my_custom_name`` and the field is of
12
+ type ``text``, Symfony will use the following names (and in this order) to find
13
+ the block used to render the widget of the field: ``_my_custom_name_widget``,
14
+ ``text_widget`` and ``form_widget``.
You can’t perform that action at this time.
0 commit comments