public function WebformSubmissionForm::gotoPage in Webform 8.5
Same name and namespace in other branches
- 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\webformCode
public function gotoPage(array &$form, FormStateInterface $form_state) {
$element = $form_state
->getTriggeringElement();
$form_state
->set('current_page', $element['#page']);
$this
->wizardSubmit($form, $form_state);
}