Skip to content

Commit 7ecff64

Browse files
Minor formatting changes
1 parent 9417432 commit 7ecff64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

form/multiple_buttons.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ querying if the "Save and add" button was clicked::
3535
Or you can get the button's name by using the
3636
:method:`Symfony\\Component\\Form\\Form::getClickedButton` method of the form::
3737
38-
if ($form->getClickedButton()->getName()==='saveAndAdd')
38+
if ('saveAndAdd' === $form->getClickedButton()->getName()) {
39+
// ...
40+
}
3941
4042

0 commit comments

Comments
 (0)