You are here

public function WebformElementInterface::preCreate in Webform 8.5

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

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

File

src/Plugin/WebformElementInterface.php, line 820

Class

WebformElementInterface
Defines the interface for webform elements.

Namespace

Drupal\webform\Plugin

Code

public function preCreate(array &$element, array &$values);