function BatchTestController::testNestedDrupalFormSubmit
Same name in other branches
- 9 core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testNestedDrupalFormSubmit()
- 10 core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testNestedDrupalFormSubmit()
- 11.x core/modules/system/tests/modules/batch_test/src/Controller/BatchTestController.php \Drupal\batch_test\Controller\BatchTestController::testNestedDrupalFormSubmit()
Submits a form within a batch programmatically.
Parameters
int $value: Some value passed to a custom batch callback.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse|null A redirect response if the batch is progressive. No return value otherwise.
1 string reference to 'BatchTestController::testNestedDrupalFormSubmit'
- 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 48
Class
- BatchTestController
- Controller routines for batch tests.
Namespace
Drupal\batch_test\ControllerCode
public function testNestedDrupalFormSubmit($value = 1) {
// Set the batch and process it.
$batch['operations'] = [
[
'_batch_test_nested_drupal_form_submit_callback',
[
$value,
],
],
];
batch_set($batch);
return batch_process('batch-test/redirect');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.