Skip to content

Commit 530a990

Browse files
committed
minor #17820 [Form] Remove mentions of renderForm() (nicolas-grekas)
This PR was merged into the 6.2 branch. Discussion ---------- [Form] Remove mentions of renderForm() Related to #16942 Commits ------- e7c3639 Remove mentions of renderForm()
2 parents 16742c4 + e7c3639 commit 530a990

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Finally, you need to update the code of the controller that handles the form::
170170
return $this->redirectToRoute('app_product_list');
171171
}
172172

173-
return $this->renderForm('product/new.html.twig', [
173+
return $this->render('product/new.html.twig', [
174174
'form' => $form,
175175
]);
176176
}

form/direct_submit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ control over when exactly your form is submitted and what data is passed to it::
2929
}
3030
}
3131

32-
return $this->renderForm('task/new.html.twig', [
32+
return $this->render('task/new.html.twig', [
3333
'form' => $form,
3434
]);
3535
}

form/dynamic_form_modification.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ your application. Assume that you have a sport meetup creation controller::
534534
// ... save the meetup, redirect etc.
535535
}
536536

537-
return $this->renderForm('meetup/create.html.twig', [
537+
return $this->render('meetup/create.html.twig', [
538538
'form' => $form,
539539
]);
540540
}

form/form_collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ In your controller, you'll create a new form from the ``TaskType``::
164164
// ... do your form processing, like saving the Task and Tag entities
165165
}
166166

167-
return $this->renderForm('task/new.html.twig', [
167+
return $this->render('task/new.html.twig', [
168168
'form' => $form,
169169
]);
170170
}

0 commit comments

Comments
 (0)