You are here

public function YamlFormElementInterface::preCreate in YAML Form 8

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 YamlFormElementInterface::preCreate()
YamlFormElementBase::preCreate in src/YamlFormElementBase.php
Changes the values of an entity before it is created.

File

src/YamlFormElementInterface.php, line 516

Class

YamlFormElementInterface
Defines the interface for form elements.

Namespace

Drupal\yamlform

Code

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