function EntityWizard::stepOneSubmit

Submission callback for the first step.

File

tests/modules/ctools_wizard_test/src/Wizard/EntityWizard.php, line 59

Class

EntityWizard

Namespace

Drupal\ctools_wizard_test\Wizard

Code

public function stepOneSubmit($form, FormStateInterface $form_state) {
    $cached_values = $form_state->getTemporaryValue('wizard');
    if ($form_state->getValue('one') == 'magic') {
        $cached_values['one'] = 'Abraham';
    }
    $form_state->setTemporaryValue('wizard', $cached_values);
}