You are here

protected function YamlFormSubmissionForm::getFirstPage in YAML Form 8

Get first page's key.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

null|string The first page's key.

2 calls to YamlFormSubmissionForm::getFirstPage()
YamlFormSubmissionForm::actions in src/YamlFormSubmissionForm.php
Returns an array of supported actions for the current entity form.
YamlFormSubmissionForm::form in src/YamlFormSubmissionForm.php
Gets the actual form array to be built.

File

src/YamlFormSubmissionForm.php, line 951

Class

YamlFormSubmissionForm
Provides a form to collect and edit submissions.

Namespace

Drupal\yamlform

Code

protected function getFirstPage(array &$form, FormStateInterface $form_state) {
  $pages = $this
    ->getPages($form, $form_state);
  return YamlFormArrayHelper::getFirstKey($pages);
}