You are here

public function YamlFormSubmissionForm::next in YAML Form 8

Form submission handler for the 'next' 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 625

Class

YamlFormSubmissionForm
Provides a form to collect and edit submissions.

Namespace

Drupal\yamlform

Code

public function next(array &$form, FormStateInterface $form_state) {
  if ($form_state
    ->getErrors()) {
    return;
  }
  $form_state
    ->set('current_page', $this
    ->getNextPage($form, $form_state));
  $this
    ->wizardSubmit($form, $form_state);
}