function _batch_test_nested_drupal_form_submit_callback
Same name in other branches
- 7.x 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()
- 10 core/modules/system/tests/modules/batch_test/batch_test.module \_batch_test_nested_drupal_form_submit_callback()
- 11.x core/modules/system/tests/modules/batch_test/batch_test.module \_batch_test_nested_drupal_form_submit_callback()
Batch operation: Submits form_test_mock_form().
1 string reference to '_batch_test_nested_drupal_form_submit_callback'
- BatchTestController::testNestedDrupalFormSubmit in core/
modules/ system/ tests/ modules/ batch_test/ src/ Controller/ BatchTestController.php - Submits a form within a batch programmatically.
File
-
core/
modules/ system/ tests/ modules/ batch_test/ batch_test.module, line 13
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.