You are here

public function MultiStepFormBase::submitGoNext in User Merge 2.x

Form submission for next button.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

File

src/Form/MultiStepFormBase.php, line 125

Class

MultiStepFormBase
Class MultiStepFormBase.

Namespace

Drupal\usermerge\Form

Code

public function submitGoNext(array &$form, FormStateInterface $form_state) {
  $next = $this->reviewSwitcher
    ->getNextProperty(static::class);
  $form_state
    ->setRedirect('usermerge.multi_step_form', [
    'property' => $next,
  ]);
}