public function WebformHandlerBase::preCreate in Webform 6.x
Same name and namespace in other branches
- 8.5 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 552
Class
- WebformHandlerBase
- Provides a base class for a webform handler.
Namespace
Drupal\webform\PluginCode
public function preCreate(array &$values) {
}