@@ -14,51 +14,57 @@ This type is essentially the same as the :doc:`DateType </reference/forms/types/
1414type, but with a more appropriate default for the `years `_ option. The `years `_
1515option defaults to 120 years ago to the current year.
1616
17- +----------------------+-------------------------------------------------------------------------------+
18- | Underlying Data Type | can be ``DateTime ``, ``string ``, ``timestamp ``, or ``array `` |
19- | | (see the :ref: `input option <form-reference-date-input >`) |
20- +----------------------+-------------------------------------------------------------------------------+
21- | Rendered as | can be three select boxes or 1 or 3 text boxes, based on the `widget `_ option |
22- +----------------------+-------------------------------------------------------------------------------+
23- | Overridden options | - `years `_ |
24- +----------------------+-------------------------------------------------------------------------------+
25- | Inherited options | from the :doc: `DateType </reference/forms/types/date >`: |
26- | | |
27- | | - `choice_translation_domain `_ |
28- | | - `days `_ |
29- | | - `placeholder `_ |
30- | | - `format `_ |
31- | | - `input `_ |
32- | | - `input_format `_ |
33- | | - `model_timezone `_ |
34- | | - `months `_ |
35- | | - `view_timezone `_ |
36- | | - `widget `_ |
37- | | |
38- | | from the :doc: `FormType </reference/forms/types/form >`: |
39- | | |
40- | | - `attr `_ |
41- | | - `data `_ |
42- | | - `disabled `_ |
43- | | - `help `_ |
44- | | - `help_attr `_ |
45- | | - `help_html `_ |
46- | | - `inherit_data `_ |
47- | | - `invalid_message `_ |
48- | | - `invalid_message_parameters `_ |
49- | | - `mapped `_ |
50- | | - `row_attr `_ |
51- +----------------------+-------------------------------------------------------------------------------+
52- | Parent type | :doc: `DateType </reference/forms/types/date >` |
53- +----------------------+-------------------------------------------------------------------------------+
54- | Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ BirthdayType ` |
55- +----------------------+-------------------------------------------------------------------------------+
17+ +---------------------------+-------------------------------------------------------------------------------+
18+ | Underlying Data Type | can be ``DateTime ``, ``string ``, ``timestamp ``, or ``array `` |
19+ | | (see the :ref: `input option <form-reference-date-input >`) |
20+ +---------------------------+-------------------------------------------------------------------------------+
21+ | Rendered as | can be three select boxes or 1 or 3 text boxes, based on the `widget `_ option |
22+ +---------------------------+-------------------------------------------------------------------------------+
23+ | Overridden options | - `invalid_message `_ |
24+ | | - `years `_ |
25+ +---------------------------+-------------------------------------------------------------------------------+
26+ | Inherited options | from the :doc: `DateType </reference/forms/types/date >`: |
27+ | | |
28+ | | - `choice_translation_domain `_ |
29+ | | - `days `_ |
30+ | | - `placeholder `_ |
31+ | | - `format `_ |
32+ | | - `input `_ |
33+ | | - `input_format `_ |
34+ | | - `model_timezone `_ |
35+ | | - `months `_ |
36+ | | - `view_timezone `_ |
37+ | | - `widget `_ |
38+ | | |
39+ | | from the :doc: `FormType </reference/forms/types/form >`: |
40+ | | |
41+ | | - `attr `_ |
42+ | | - `data `_ |
43+ | | - `disabled `_ |
44+ | | - `help `_ |
45+ | | - `help_attr `_ |
46+ | | - `help_html `_ |
47+ | | - `inherit_data `_ |
48+ | | - `invalid_message_parameters `_ |
49+ | | - `mapped `_ |
50+ | | - `row_attr `_ |
51+ +---------------------------+-------------------------------------------------------------------------------+
52+ | Default invalid message | Please enter a valid birthdate. |
53+ +---------------------------+-------------------------------------------------------------------------------+
54+ | Legacy invalid message | The value {{ value }} is not valid. |
55+ +---------------------------+-------------------------------------------------------------------------------+
56+ | Parent type | :doc: `DateType </reference/forms/types/date >` |
57+ +---------------------------+-------------------------------------------------------------------------------+
58+ | Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ BirthdayType ` |
59+ +---------------------------+-------------------------------------------------------------------------------+
5660
5761.. include :: /reference/forms/types/options/_debug_form.rst.inc
5862
5963Overridden Options
6064------------------
6165
66+ .. include :: /reference/forms/types/options/invalid_message.rst.inc
67+
6268``years ``
6369~~~~~~~~~
6470
@@ -128,8 +134,6 @@ These options inherit from the :doc:`FormType </reference/forms/types/form>`:
128134
129135.. include :: /reference/forms/types/options/inherit_data.rst.inc
130136
131- .. include :: /reference/forms/types/options/invalid_message.rst.inc
132-
133137.. include :: /reference/forms/types/options/invalid_message_parameters.rst.inc
134138
135139.. include :: /reference/forms/types/options/mapped.rst.inc
0 commit comments