You are here

function _batch_test_finished_1_finished in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc \_batch_test_finished_1_finished()
  2. 10 core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc \_batch_test_finished_1_finished()

Implements callback_batch_finished().

Triggers 'finished' callback for batch 1.

1 string reference to '_batch_test_finished_1_finished'
BatchTestController::testFinishRedirect in core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php
Fires a batch process without a form submission and a finish redirect.

File

core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc, line 180
Batch callbacks for the Batch API tests.

Code

function _batch_test_finished_1_finished($success, $results, $operations) {
  _batch_test_finished_helper(1, $success, $results, $operations);
  return new RedirectResponse(Url::fromRoute('test_page_test.test_page', [], [
    'absolute' => TRUE,
  ])
    ->toString());
}