function _batch_test_nested_drupal_form_submit_callback in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/batch_test/batch_test.module \_batch_test_nested_drupal_form_submit_callback()
- 7 modules/simpletest/tests/batch_test.module \_batch_test_nested_drupal_form_submit_callback()
- 9 core/modules/system/tests/modules/batch_test/batch_test.module \_batch_test_nested_drupal_form_submit_callback()
Batch operation: Submits form_test_mock_form().
File
- core/
modules/ system/ tests/ modules/ batch_test/ batch_test.module, line 14 - Helper module for the Batch API tests.
Code
function _batch_test_nested_drupal_form_submit_callback($value) {
$form_state = (new FormState())
->setValue('test_value', $value);
\Drupal::formBuilder()
->submitForm('Drupal\\batch_test\\Form\\BatchTestMockForm', $form_state);
}