8000 [Form] form add extra data by Arkalo2 · Pull Request #20853 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Form] form add extra data #20853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: 6.4
Choose a base branch
from
Prev Previous commit
Update forms.rst
Co-authored-by: Antoine Lamirault <lantoine37@hotmail.fr>
  • Loading branch information
Arkalo2 and alamirault authored May 21, 2025
commit 21040c50f0a01f365bc29930949c968cb069a7e2
3 changes: 2 additions & 1 deletion forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,8 @@ Extra fields

All form fields are considered properties of the object but you can inject
fields directly into your view without specifying them in the form definition.
They can be retrieved via the ``getExtraData`` :class:`Symfony\\Component\\Form\\FormTypeInterface`.
They can be retrieved via the :method:`FormInterface::getExtraData() <Symfony\\Component\\Form\\FormInterface::getExtraData>`
method.

This is a creation user form::

Expand Down
0