You are here

protected function FormStep::setCurrentStep in Simple multi step form 8

Same name and namespace in other branches
  1. 8.x src/FormStep.php \Drupal\simple_multistep\FormStep::setCurrentStep()

Set current step.

File

src/FormStep.php, line 104

Class

FormStep
Class FormStep.

Namespace

Drupal\simple_multistep

Code

protected function setCurrentStep() {
  $this->currentStep = 0;
  $this->currentStep = empty($this->formState
    ->get('step')) ? 0 : $this->formState
    ->get('step');
}