You are here

public function YamlFormSubmissionForm::confirmForm in YAML Form 8

Form confirm(ation) handler.

Parameters

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

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

File

src/YamlFormSubmissionForm.php, line 800

Class

YamlFormSubmissionForm
Provides a form to collect and edit submissions.

Namespace

Drupal\yamlform

Code

public function confirmForm(array &$form, FormStateInterface $form_state) {
  $this
    ->setConfirmation($form_state);

  /** @var \Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission */
  $yamlform_submission = $this
    ->getEntity();

  // Confirm form via form handler.
  $this
    ->getYamlForm()
    ->invokeHandlers('confirmForm', $form, $form_state, $yamlform_submission);
}