function BatchTestHelper::nestedDrupalFormSubmitCallback

Batch operation: Submits form_test_mock_form().

File

core/modules/system/tests/modules/batch_test/src/BatchTestHelper.php, line 14

Class

BatchTestHelper

Namespace

Drupal\batch_test

Code

public function nestedDrupalFormSubmitCallback($value) : void {
    $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.