You are here

public function ExampleWebformHandler::preprocessConfirmation in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php \Drupal\webform_example_handler\Plugin\WebformHandler\ExampleWebformHandler::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

modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php, line 215

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

public function preprocessConfirmation(array &$variables) {
  $this
    ->debug(__FUNCTION__);
}