public function TestWebformHandler::confirmForm in Webform 8.5
Same name and namespace in other branches
- 6.x tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestWebformHandler::confirmForm()
Confirm webform 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\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Overrides WebformHandlerBase::confirmForm
File
- tests/
modules/ webform_test_handler/ src/ Plugin/ WebformHandler/ TestWebformHandler.php, line 106
Class
- TestWebformHandler
- Webform submission test handler.
Namespace
Drupal\webform_test_handler\Plugin\WebformHandlerCode
public function confirmForm(array &$form, FormStateInterface $form_state, WebformSubmissionInterface $webform_submission) {
$this
->messenger()
->addStatus($this->configuration['message'], TRUE);
\Drupal::logger('webform.test_form')
->notice($this->configuration['message']);
$this
->displayMessage(__FUNCTION__);
}