You are here

protected function WebformSubmissionForm::getFirstPage in Webform 8.5

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

Get first page's key.

Parameters

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

Return value

null|string The first page's key.

2 calls to WebformSubmissionForm::getFirstPage()
WebformSubmissionForm::actions in src/WebformSubmissionForm.php
Returns an array of supported actions for the current entity form.
WebformSubmissionForm::attachBehaviors in src/WebformSubmissionForm.php
Attach behaviors with libraries to the form.

File

src/WebformSubmissionForm.php, line 2257

Class

WebformSubmissionForm
Provides a webform to collect and edit submissions.

Namespace

Drupal\webform

Code

protected function getFirstPage(array $pages) {
  return WebformArrayHelper::getFirstKey($pages);
}