File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,33 @@ much easier to implement.
95
95
There are tens of :doc: `form types provided by Symfony </reference/forms/types >`
96
96
and you can also :doc: `create your own form types </form/create_custom_field_type >`.
97
97
98
+ .. tip ::
99
+
100
+ You can use the ``debug:form `` to list all the available types, type
101
+ extensions and type guessers in your application:
102
+
103
+ .. code-block :: terminal
104
+
105
+ $ php bin/console debug:form
106
+
107
+ If you pass a form type as the first argument, the command shows the options
108
+ defined for that type, its parents and its extensions.
109
+ For built-in types the short classname is enough, however other types
110
+ require the FQCN:
111
+
112
+ .. code-block :: terminal
113
+
114
+ $ php bin/console debug:form BirthdayType
115
+
116
+ If you pass both a form type class and an option name, the command displays
117
+ the full definition of the given option:
118
+
119
+ .. code-block :: terminal
120
+
121
+ $ php bin/console debug:form BirthdayType label_attr
122
+
123
+ You can see all the command options by running ``--help ``.
124
+
98
125
Building Forms
99
126
--------------
100
127
You can’t perform that action at this time.
0 commit comments