Skip to content

Commit 0bc39e8

Browse files
minor #51044 [Form] Fix form events phpdocs (HeahDude)
This PR was merged into the 5.4 branch. Discussion ---------- [Form] Fix form events phpdocs | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | ~ | License | MIT | Doc PR | ~ Sibling of symfony/symfony-docs#18587. Commits ------- 2032b5b [Form] Fix form events phpdocs
2 parents 06ec40a + 2032b5b commit 0bc39e8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Symfony/Component/Form/Event/PostSetDataEvent.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
/**
1717
* This event is dispatched at the end of the Form::setData() method.
1818
*
19-
* This event is mostly here for reading data after having pre-populated the form.
19+
* It can be used to modify a form depending on the populated data (adding or
20+
* removing fields dynamically).
2021
*/
2122
final class PostSetDataEvent extends FormEvent
2223
{

src/Symfony/Component/Form/Event/PreSetDataEvent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
/**
1717
* This event is dispatched at the beginning of the Form::setData() method.
1818
*
19-
* It can be used to:
20-
* - Modify the data given during pre-population;
21-
* - Modify a form depending on the pre-populated data (adding or removing fields dynamically).
19+
* It can be used to modify the data given during pre-population.
2220
*/
2321
final class PreSetDataEvent extends FormEvent
2422
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy