public function WizardTest::stepOneSubmit in Chaos Tool Suite (ctools) 8.3
Submission callback for the first step.
File
- tests/
modules/ ctools_wizard_test/ src/ Wizard/ WizardTest.php, line 57
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);
}