function FormTestStorageForm::continueSubmitForm

Same name in other branches
  1. 9 core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php \Drupal\form_test\Form\FormTestStorageForm::continueSubmitForm()
  2. 8.9.x core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php \Drupal\form_test\Form\FormTestStorageForm::continueSubmitForm()
  3. 11.x core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php \Drupal\form_test\Form\FormTestStorageForm::continueSubmitForm()

File

core/modules/system/tests/modules/form_test/src/Form/FormTestStorageForm.php, line 131

Class

FormTestStorageForm
A multistep form for testing the form storage.

Namespace

Drupal\form_test\Form

Code

public function continueSubmitForm(array &$form, FormStateInterface $form_state) {
    $form_state->set([
        'thing',
        'title',
    ], $form_state->getValue('title'));
    $form_state->set([
        'thing',
        'value',
    ], $form_state->getValue('value'));
    $form_state->setRebuild();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.