You are here

public function MultistepController::__construct in Simple multi step form 8

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

MultistepController constructor.

Parameters

array $form: Form settings.

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

Overrides FormStep::__construct

File

src/MultistepController.php, line 50

Class

MultistepController
Class MultistepController.

Namespace

Drupal\simple_multistep

Code

public function __construct(array &$form, FormStateInterface $form_state) {
  parent::__construct($form, $form_state);

  // Initialize empty storage.
  $this->inputValues = [];
  $this->storedValues = [];
}