protected function YamlFormSubmissionForm::getNextPage in YAML Form 8
Get next 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 next page's key. NULL if there is no next page.
2 calls to YamlFormSubmissionForm::getNextPage()
- YamlFormSubmissionForm::actions in src/YamlFormSubmissionForm.php 
- Returns an array of supported actions for the current entity form.
- YamlFormSubmissionForm::next in src/YamlFormSubmissionForm.php 
- Form submission handler for the 'next' action.
File
- src/YamlFormSubmissionForm.php, line 983 
Class
- YamlFormSubmissionForm
- Provides a form to collect and edit submissions.
Namespace
Drupal\yamlformCode
protected function getNextPage(array &$form, FormStateInterface $form_state) {
  $pages = $this
    ->getPages($form, $form_state);
  $current_page = $this
    ->getCurrentPage($form, $form_state);
  return YamlFormArrayHelper::getNextKey($pages, $current_page);
}