Commit 2458d9ec authored by alexpott's avatar alexpott

Issue #2300873 by amitgoyal, joshi.rohit100: Remove usage of drupal_redirect_form() as deprecated.

parent 573ad2a1
......@@ -445,8 +445,9 @@ function _batch_finished() {
}
}
// Use drupal_redirect_form() to handle the redirection logic.
$redirect = drupal_redirect_form($_batch['form_state']);
// Use \Drupal\Core\Form\FormSubmitterInterface::redirectForm() to handle
// the redirection logic.
$redirect = \Drupal::service('form_submitter')->redirectForm($_batch['form_state']);
if (is_object($redirect)) {
return $redirect;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment