You are here

public function WebformHandlerBase::preCreate in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::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 WebformHandlerInterface::preCreate

2 methods override WebformHandlerBase::preCreate()
ExampleWebformHandler::preCreate in modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php
Changes the values of an entity before it is created.
TestWebformHandler::preCreate in tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php
Changes the values of an entity before it is created.

File

src/Plugin/WebformHandlerBase.php, line 613

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

public function preCreate(array &$values) {
}