You are here

public function WebformElementBase::preCreate in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::preCreate()

Changes the values of an entity before it is created.

Parameters

array $element: An element.

mixed[] &$values: An array of values to set, keyed by property name.

Overrides WebformElementInterface::preCreate

1 method overrides WebformElementBase::preCreate()
WebformTestElement::preCreate in tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestElement.php
Changes the values of an entity before it is created.

File

src/Plugin/WebformElementBase.php, line 2309

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function preCreate(array &$element, array &$values) {
}