public function StepIndicator::__construct in Simple multi step form 8
Same name and namespace in other branches
- 8.x 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_multistepCode
public function __construct(array $form, FormStateInterface $form_state, $current_step) {
parent::__construct($form, $form_state);
$this->currentStep = $current_step;
}