function _batch_test_finished_1_finished

Same name 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()
  3. 11.x 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

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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.