protected function FormStep::setCurrentStep in Simple multi step form 8.x
Same name and namespace in other branches
- 8 src/FormStep.php \Drupal\simple_multistep\FormStep::setCurrentStep()
Set current step.
File
- src/
FormStep.php, line 103
Class
- FormStep
- Class FormStep.
Namespace
Drupal\simple_multistepCode
protected function setCurrentStep() {
$this->currentStep = 0;
$this->currentStep = empty($this->formState
->get('step')) ? 0 : $this->formState
->get('step');
}