You are here

public function YamlFormSubmissionForm::previous in YAML Form 8

Form submission handler for the 'previous' action.

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/YamlFormSubmissionForm.php, line 641

Class

YamlFormSubmissionForm
Provides a form to collect and edit submissions.

Namespace

Drupal\yamlform

Code

public function previous(array &$form, FormStateInterface $form_state) {
  $form_state
    ->set('current_page', $this
    ->getPreviousPage($form, $form_state));
  $this
    ->wizardSubmit($form, $form_state);
}