function BatchTestCallbacks::finished1Finished

Implements callback_batch_finished().

Triggers 'finished' callback for batch 1.

File

core/modules/system/tests/modules/batch_test/src/BatchTestCallbacks.php, line 241

Class

BatchTestCallbacks
Batch callbacks for testing batches.

Namespace

Drupal\batch_test

Code

public function finished1Finished($success, $results, $operations, $elapsed) : RedirectResponse {
    $this->finishedHelper(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.