function EntityWizard::stepOneSubmit
Submission callback for the first step.
File
-
tests/
modules/ ctools_wizard_test/ src/ Wizard/ EntityWizard.php, line 59
Class
Namespace
Drupal\ctools_wizard_test\WizardCode
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);
}