You are here

protected function WebformSubmissionForm::getLastPage in Webform 6.x

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

Get last page's key.

Parameters

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

Return value

null|string The last page's key.

1 call to WebformSubmissionForm::getLastPage()
WebformSubmissionForm::actions in src/WebformSubmissionForm.php
Returns an array of supported actions for the current entity form.

File

src/WebformSubmissionForm.php, line 2187

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

protected function getLastPage(array $pages) {
  return WebformArrayHelper::getLastKey($pages);
}