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 869ec1f commit 7e3d02eCopy full SHA for 7e3d02e
form/multiple_buttons.rst
@@ -31,12 +31,10 @@ querying if the "Save and add" button was clicked::
31
32
return $this->redirectToRoute($nextAction);
33
}
34
-
35
-Or you can get the button's name by using the
+
+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() && 'saveAndAdd' === $form->getClickedButton()->getName()) {
39
// ...
40
41
42
0 commit comments