You are here

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

Same name and namespace in other branches
  1. 8.x src/FormButton.php \Drupal\simple_multistep\FormButton::__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/FormButton.php, line 24

Class

FormButton
Class FormButton.

Namespace

Drupal\simple_multistep

Code

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