You are here

public function WebformSubmissionForm::gotoPage in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionForm.php \Drupal\webform\WebformSubmissionForm::gotoPage()

Webform submission handler for the 'goto' 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/WebformSubmissionForm.php, line 1613

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

public function gotoPage(array &$form, FormStateInterface $form_state) {
  $element = $form_state
    ->getTriggeringElement();
  $form_state
    ->set('current_page', $element['#page']);
  $this
    ->wizardSubmit($form, $form_state);
}