You are here

protected function WebformSubmissionForm::getNextPage in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionForm.php \Drupal\webform\WebformSubmissionForm::getNextPage()

Get next page's key.

Parameters

array $pages: An associative array of visible wizard pages.

string $current_page: The current page.

Return value

null|string The next page's key. NULL if there is no next page.

2 calls to WebformSubmissionForm::getNextPage()
WebformSubmissionForm::actions in src/WebformSubmissionForm.php
Returns an array of supported actions for the current entity form.
WebformSubmissionForm::next in src/WebformSubmissionForm.php
Webform submission handler for the 'next' action.

File

src/WebformSubmissionForm.php, line 2202

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

protected function getNextPage(array $pages, $current_page) {
  return WebformArrayHelper::getNextKey($pages, $current_page);
}