Skip to content

Commit 98e828f

Browse files
committed
Documented checked variable
1 parent d2b57be commit 98e828f

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

reference/forms/types/checkbox.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if the box is unchecked, the value will be set to false.
1313
+-------------+------------------------------------------------------------------------+
1414
| Options | - `value`_ |
1515
+-------------+------------------------------------------------------------------------+
16+
| Variables | - `checked`_ |
17+
+-------------+------------------------------------------------------------------------+
1618
| Overridden | - `empty_data`_ |
1719
| options | - `compound`_ |
1820
+-------------+------------------------------------------------------------------------+
@@ -46,6 +48,11 @@ Field Options
4648

4749
.. include:: /reference/forms/types/options/value.rst.inc
4850

51+
Variables
52+
---------
53+
54+
.. include:: /reference/forms/types/variables/checked.rst.inc
55+
4956
Overridden options
5057
------------------
5158

reference/forms/types/radio.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ If you want to have a Boolean field, use :doc:`checkbox </reference/forms/types/
1515
+-------------+---------------------------------------------------------------------+
1616
| Rendered as | ``input`` ``radio`` field |
1717
+-------------+---------------------------------------------------------------------+
18+
| Variables | - `checked`_ |
19+
+-------------+---------------------------------------------------------------------+
1820
| Inherited | - `value`_ |
1921
| options | - `data`_ |
2022
| | - `empty_data`_ |
@@ -32,6 +34,11 @@ If you want to have a Boolean field, use :doc:`checkbox </reference/forms/types/
3234
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\RadioType` |
3335
+-------------+---------------------------------------------------------------------+
3436

37+
Variables
38+
---------
39+
40+
.. include:: /reference/forms/types/variables/checked.rst.inc
41+
3542
Inherited Options
3643
-----------------
3744

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
checked
2+
~~~~~~~
3+
4+
**type**: boolean
5+
6+
Whether or not the current input is checked.

0 commit comments

Comments
 (0)