You are here

public function StepIndicator::__construct in Simple multi step form 8.x

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

Constructor.

Parameters

array $form: Form settings.

\Drupal\Core\Form\FormStateInterface $form_state: Form state object.

int $current_step: Current step.

Overrides FormStep::__construct

File

src/StepIndicator.php, line 24

Class

StepIndicator
Class StepIndicator.

Namespace

Drupal\simple_multistep

Code

public function __construct(array $form, FormStateInterface $form_state, $current_step) {
  parent::__construct($form, $form_state);
  $this->currentStep = $current_step;
}