You are here

public function YamlFormTest::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 YamlFormElementBase::preCreate

File

tests/modules/yamlform_test/src/Plugin/YamlFormElement/YamlFormTest.php, line 54

Class

YamlFormTest
Provides a 'yamlform_test' element.

Namespace

Drupal\yamlform_test\Plugin\YamlFormElement

Code

public function preCreate(array &$element, array $values) {
  $this
    ->displayMessage(__FUNCTION__);
}