You are here

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

Form submission for the last step.

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 138

Class

MultiStepFormBase
Class MultiStepFormBase.

Namespace

Drupal\usermerge\Form

Code

public function submitCreateBatch(array &$form, FormStateInterface $form_state) {
  $this->batchGenerator
    ->createBatch();
  $form_state
    ->setRedirect('usermerge.multi_step_form');
}