Skip to content

Clarify example for SUBMIT form event #5996

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

Merged
merged 1 commit into from
Dec 12, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions components/form/form_events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,9 @@ View data Same as in ``FormEvents::POST_SET_DATA``

.. sidebar:: ``FormEvents::SUBMIT`` in the Form component

The ``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener``
subscribes to the ``FormEvents::SUBMIT`` event in order to remove the
fields that need to be removed whenever manipulating a collection of forms
for which ``allow_delete`` has been enabled.
The ``Symfony\Component\Form\Extension\Core\EventListener\FixUrlProtocolListener``
subscribes to the ``FormEvents::SUBMIT`` event in order to prepend a default
protocol to URL field data that was submitted without a protocol.

C) The ``FormEvents::POST_SUBMIT`` Event
........................................
Expand Down