You are here

public function ExampleWebformHandler::preCreate 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::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 166

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

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