You are here

protected function WebformSubmissionForm::getLastPage in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 2270

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

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