You are here

public function TestWebformHandler::preprocessConfirmation in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestWebformHandler::preprocessConfirmation()

Prepares variables for webform confirmation templates.

Default template: webform-confirmation.html.twig.

Parameters

array $variables: An associative array containing the following key:

  • webform: A webform.
  • webform_submission: A webform submission.
  • source_entity: A webform submission source entity.

Overrides WebformHandlerBase::preprocessConfirmation

File

tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php, line 179

Class

TestWebformHandler
Webform submission test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

public function preprocessConfirmation(array &$variables) {
  $this
    ->displayMessage(__FUNCTION__);
  $variables['message'] = '::preprocessConfirmation';
}