Skip to content

Commit

Permalink
minor #6281 Change isValid to isSubmitted. (mustafaaloko)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #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.
  • Loading branch information
wouterj committed Mar 5, 2016
2 parents 9fb81a3 + f44ec98 commit eac3d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ possible paths:
#. When initially loading the page in a browser, the form is simply created and
rendered. :method:`Symfony\\Component\\Form\\FormInterface::handleRequest`
recognizes that the form was not submitted and does nothing.
:method:`Symfony\\Component\\Form\\FormInterface::isValid` returns ``false``
:method:`Symfony\\Component\\Form\\FormInterface::isSubmitted` returns ``false``
if the form was not submitted.

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

0 comments on commit eac3d21

Please sign in to comment.