You are here

public function TestYamlFormHandler::confirmForm in YAML Form 8

Confirm form submission form.

Parameters

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

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

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

Overrides YamlFormHandlerBase::confirmForm

File

tests/modules/yamlform_test/src/Plugin/YamlFormHandler/TestYamlFormHandler.php, line 88

Class

TestYamlFormHandler
Form submission test handler.

Namespace

Drupal\yamlform_test\Plugin\YamlFormHandler

Code

public function confirmForm(array &$form, FormStateInterface $form_state, YamlFormSubmissionInterface $yamlform_submission) {
  drupal_set_message($this->configuration['message'], 'status', TRUE);
  \Drupal::logger('yamlform.test')
    ->notice($this->configuration['message']);
  $this
    ->displayMessage(__FUNCTION__);
}