You are here

public function TestWebformHandler::preCreate in Webform 8.5

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

Changes the values of an entity before it is created.

Note: This hook is ignored by conditional logic.

Parameters

mixed[] $values: An array of values to set, keyed by property name.

Overrides WebformHandlerBase::preCreate

File

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

Class

TestWebformHandler
Webform submission test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

public function preCreate(array &$values) {
  $this
    ->displayMessage(__FUNCTION__);
}