public function BatchTestController::testThemeBatch in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testThemeBatch()
- 10 core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testThemeBatch()
Runs a batch for testing theme used on the progress page.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse|null A redirect response if the batch is progressive. No return value otherwise.
1 string reference to 'BatchTestController::testThemeBatch'
- batch_test.routing.yml in core/
modules/ system/ tests/ modules/ batch_test/ batch_test.routing.yml - core/modules/system/tests/modules/batch_test/batch_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ batch_test/ src/ Controller/ BatchTestController.php, line 116
Class
- BatchTestController
- Controller routines for batch tests.
Namespace
Drupal\batch_test\ControllerCode
public function testThemeBatch() {
batch_test_stack(NULL, TRUE);
$batch = [
'operations' => [
[
'_batch_test_theme_callback',
[],
],
],
];
batch_set($batch);
return batch_process('batch-test/redirect');
}