function BatchTestChainedForm::batchTestChainedFormSubmit4
Same name in other branches
- 9 core/modules/system/tests/modules/batch_test/src/Form/BatchTestChainedForm.php \Drupal\batch_test\Form\BatchTestChainedForm::batchTestChainedFormSubmit4()
- 8.9.x core/modules/system/tests/modules/batch_test/src/Form/BatchTestChainedForm.php \Drupal\batch_test\Form\BatchTestChainedForm::batchTestChainedFormSubmit4()
- 11.x core/modules/system/tests/modules/batch_test/src/Form/BatchTestChainedForm.php \Drupal\batch_test\Form\BatchTestChainedForm::batchTestChainedFormSubmit4()
Form submission handler #4 for batch_test_chained_form.
File
-
core/
modules/ system/ tests/ modules/ batch_test/ src/ Form/ BatchTestChainedForm.php, line 98
Class
- BatchTestChainedForm
- Generate form of id batch_test_chained_form.
Namespace
Drupal\batch_test\FormCode
public static function batchTestChainedFormSubmit4($form, FormStateInterface $form_state) {
batch_test_stack('submit handler 4');
batch_test_stack('value = ' . $form_state->getValue('value'));
$value =& $form_state->getValue('value');
$value++;
batch_set(_batch_test_batch_3());
$form_state->setRedirect('batch_test.redirect');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.