protected function YamlFormSubmissionForm::getLastPage in YAML Form 8
Get last 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 last page's key.
1 call to YamlFormSubmissionForm::getLastPage()
- YamlFormSubmissionForm::actions in src/YamlFormSubmissionForm.php 
- Returns an array of supported actions for the current entity form.
File
- src/YamlFormSubmissionForm.php, line 967 
Class
- YamlFormSubmissionForm
- Provides a form to collect and edit submissions.
Namespace
Drupal\yamlformCode
protected function getLastPage(array &$form, FormStateInterface $form_state) {
  $pages = $this
    ->getPages($form, $form_state);
  return YamlFormArrayHelper::getLastKey($pages);
}