You are here

public static function BatchTestChainedForm::batchTestChainedFormSubmit3 in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/batch_test/src/Form/BatchTestChainedForm.php \Drupal\batch_test\Form\BatchTestChainedForm::batchTestChainedFormSubmit3()
  2. 9 core/modules/system/tests/modules/batch_test/src/Form/BatchTestChainedForm.php \Drupal\batch_test\Form\BatchTestChainedForm::batchTestChainedFormSubmit3()

Form submission handler #3 for batch_test_chained_form.

File

core/modules/system/tests/modules/batch_test/src/Form/BatchTestChainedForm.php, line 85

Class

BatchTestChainedForm
Generate form of id batch_test_chained_form.

Namespace

Drupal\batch_test\Form

Code

public static function batchTestChainedFormSubmit3($form, FormStateInterface $form_state) {
  batch_test_stack('submit handler 3');
  batch_test_stack('value = ' . $form_state
    ->getValue('value'));
  $value =& $form_state
    ->getValue('value');
  $value++;
  $form_state
    ->setRedirect('batch_test.redirect');
}