10000 [Form] Fix form events phpdocs by HeahDude · Pull Request #51044 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] Fix form events phpdocs #51044

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
Jul 21, 2023
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion src/Symfony/Component/Form/Event/PostSetDataEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
/**
* This event is dispatched at the end of the Form::setData() method.
*
* This event is mostly here for reading data after having pre-populated the form.
* It can be used to modify a form depending on the populated data (adding or
* removing fields dynamically).
*/
final class PostSetDataEvent extends FormEvent
{
Expand Down
4 changes: 1 addition & 3 deletions src/Symfony/Component/Form/Event/PreSetDataEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
/**
* This event is dispatched at the beginning of the Form::setData() method.
*
* It can be used to:
* - Modify the data given during pre-population;
* - Modify a form depending on the pre-populated data (adding or removing fields dynamically).
* It can be used to modify the data given during pre-population.
*/
final class PreSetDataEvent extends FormEvent
{
Expand Down
0