Skip to content

Commit eac3d21

Browse files
committed
minor symfony#6281 Change isValid to isSubmitted. (mustafaaloko)
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes symfony#6281). Discussion ---------- Change isValid to isSubmitted. Fixed this line: `isValid()` returns false if the form was not submitted. To this: `isSubmitted()` returns false if the form was not submitted. Commits ------- f44ec98 Change isValid to isSubmitted.
2 parents 9fb81a3 + f44ec98 commit eac3d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ possible paths:
260260
#. When initially loading the page in a browser, the form is simply created and
261261
rendered. :method:`Symfony\\Component\\Form\\FormInterface::handleRequest`
262262
recognizes that the form was not submitted and does nothing.
263-
:method:`Symfony\\Component\\Form\\FormInterface::isValid` returns ``false``
263+
:method:`Symfony\\Component\\Form\\FormInterface::isSubmitted` returns ``false``
264264
if the form was not submitted.
265265

266266
#. When the user submits the form, :method:`Symfony\\Component\\Form\\FormInterface::handleRequest`

0 commit comments

Comments
 (0)