Skip to content

Commit 7774b21

Browse files
committed
Fix syntax
1 parent 9ef444b commit 7774b21

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

forms.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ the submitted data, those fields will be explicitly set to ``null``.
950950
Extra fields
951951
~~~~~~~~~~~~
952952

953-
All form fields are considered properties of the object but you can inject
953+
All form fields are considered properties of the object but you can inject
954954
fields directly into your view without specifying them in the form definition.
955955
They can be retrieved via the ``getExtraData`` :class:`Symfony\\Component\\Form\\FormTypeInterface`.
956956

@@ -1000,14 +1000,14 @@ Here, the referral code is an extra field injected at view level.
10001000
The field name is composed of form ``user_create`` and the field name ``referralCode``.
10011001
It's automatically generated from the form class name. You can :ref:`override it <changing-the-form-name>`
10021002

1003-
Or you can use use
1004-
.. code-block:: html+twig
1003+
Or you can use use
1004+
1005+
.. code-block:: twig
1006+
10051007
{{ form.vars.full_name ~ '[referralCode]' }}
10061008
10071009
to render the form name dynamically
10081010

1009-
{{ form.vars.full_name ~ '[description]' }}
1010-
10111011
You can get the referral code via ``getExtraData``::
10121012

10131013
$extraData = $form->getExtraData();

0 commit comments

Comments
 (0)