protected function FormStep::fetchStepSettings in Simple multi step form 8
Same name and namespace in other branches
- 8.x src/FormStep.php \Drupal\simple_multistep\FormStep::fetchStepSettings()
Fetch form step settings by current step.
2 calls to FormStep::fetchStepSettings()
- FormButton::__construct in src/
FormButton.php - Constructor.
- FormStep::updateStepInfo in src/
FormStep.php - Update step info.
File
- src/
FormStep.php, line 163
Class
- FormStep
- Class FormStep.
Namespace
Drupal\simple_multistepCode
protected function fetchStepSettings() {
$step_settings = [];
if (isset($this->form['#fieldgroups'])) {
$form_steps = $this
->getSteps();
if (!empty($form_steps) && isset($form_steps[$this->currentStep])) {
$step_settings = $form_steps[$this->currentStep];
}
}
$this->stepSettings = $step_settings;
}