You are here

public function ExampleWebformHandler::preCreate in Webform 6.x

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

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

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

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