In the above example, after the form is submitted, the user will be redirected to a custom page defined by the route named `my_module.custom_page`. Example 2: Redirecting to the current pagephp public function submitForm(array &$form, FormStateInterface $form_state) { // Save the submitted values and do processing. // Redirect the user back to the current page. $form_state->setRedirect('