We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9417432 commit 7ecff64Copy full SHA for 7ecff64
form/multiple_buttons.rst
@@ -35,6 +35,8 @@ querying if the "Save and add" button was clicked::
35
Or you can get the button's name by using the
36
:method:`Symfony\\Component\\Form\\Form::getClickedButton` method of the form::
37
38
- if ($form->getClickedButton()->getName()==='saveAndAdd')
+ if ('saveAndAdd' === $form->getClickedButton()->getName()) {
39
+ // ...
40
+ }
41
42
0 commit comments