function _batch_test_finished_1_finished
Same name in other branches
- 8.9.x core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc \_batch_test_finished_1_finished()
- 10 core/modules/system/tests/modules/batch_test/batch_test.callbacks.inc \_batch_test_finished_1_finished()
- 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 183
Code
function _batch_test_finished_1_finished($success, $results, $operations, $elapsed) {
_batch_test_finished_helper(1, $success, $results, $operations, $elapsed);
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.