You are here

public static function FormsStepsStepFormBase::updateFormModeCallback in Forms Steps 8

Callback to return new nested select values.

Parameters

array $form: The referenced form to use.

\Drupal\Core\Form\FormStateInterface $form_state: The form_state.

Return value

array Returns the new form_mode_container based on the change done in Ajax.

File

src/Form/FormsStepsStepFormBase.php, line 587

Class

FormsStepsStepFormBase
Class FormsStepsStepFormBase.

Namespace

Drupal\forms_steps\Form

Code

public static function updateFormModeCallback(array &$form, FormStateInterface $form_state) : array {
  $form_state
    ->setRebuild(TRUE);
  return $form['form_mode_container'];
}