public function YamlFormElementBase::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.
Overrides YamlFormElementInterface::preCreate
1 method overrides YamlFormElementBase::preCreate()
- YamlFormTest::preCreate in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormElement/ YamlFormTest.php - Changes the values of an entity before it is created.
File
- src/
YamlFormElementBase.php, line 881
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function preCreate(array &$element, array $values) {
}