You are here

public function MultistepController::saveInputValues in Simple multi step form 8.x

Same name and namespace in other branches
  1. 8 src/MultistepController.php \Drupal\simple_multistep\MultistepController::saveInputValues()

Save input values from current step.

File

src/MultistepController.php, line 61

Class

MultistepController
Class MultistepController.

Namespace

Drupal\simple_multistep

Code

public function saveInputValues() {
  $stored_input = $this->inputValues;
  $stored_input[$this->currentStep] = $this->formState
    ->getUserInput();
  $this->inputValues = $stored_input;
}