You are here

final public function MultiStepFormBase::submitForm in User Merge 2.x

Throws

\Drupal\Core\TempStore\TempStoreException

Overrides FormInterface::submitForm

File

src/Form/MultiStepFormBase.php, line 148

Class

MultiStepFormBase
Class MultiStepFormBase.

Namespace

Drupal\usermerge\Form

Code

public final function submitForm(array &$form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  $property = $this->reviewSwitcher
    ->getPropertyFromForm(static::class);
  $this->multiStepStorage
    ->setValues($property, $values);
  $form_state
    ->setRedirect('usermerge.multi_step_form', [
    'property' => 'property_user',
  ]);
}