public function TestWebformHandler::preCreate in Webform 6.x
Same name and namespace in other branches
- 8.5 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\WebformHandlerCode
public function preCreate(array &$values) {
$this
->displayMessage(__FUNCTION__);
}