@@ -779,18 +779,18 @@ function batch_set($batch_definition) {
779779 * Form API takes care of batches that were set during form submission.
780780 *
781781 * @param \Drupal\Core\Url|string $redirect
782- * (optional) Either path or Url object to redirect to when the batch has
783- * finished processing. Note that to simply force a batch to (conditionally)
784- * redirect to a custom location after it is finished processing but to
785- * otherwise allow the standard form API batch handling to occur, it is not
786- * necessary to call batch_process() and use this parameter. Instead, make
787- * the batch 'finished' callback return an instance of
788- * \Symfony\Component\HttpFoundation\RedirectResponse, which will be used
782+ * (optional) Either a path or Url object to redirect to when the batch has
783+ * finished processing. For example, to redirect users to the home page, use
784+ * '<front>'. If you wish to allow standard form API batch handling to occur
785+ * and force the user to be redirected to a custom location after the batch
786+ * has finished processing, you do not need to use batch_process() and this
787+ * parameter. Instead, make the batch 'finished' callback return an instance
788+ * of \Symfony\Component\HttpFoundation\RedirectResponse, which will be used
789789 * automatically by the standard batch processing pipeline (and which takes
790- * precedence over this parameter).
791- * User will be redirected to the page that started the batch if this argument
792- * is omitted and no redirect response was returned by the 'finished'
793- * callback. Any query arguments will be automatically persisted.
790+ * precedence over this parameter). If this parameter is omitted and no
791+ * redirect response was returned by the 'finished' callback, the user will
792+ * be redirected to the page that started the batch. Any query arguments will
793+ * be automatically persisted.
794794 * @param \Drupal\Core\Url $url
795795 * (optional) URL of the batch processing page. Should only be used for
796796 * separate scripts like update.php.
0 commit comments