You are here

public function YamlFormTest::setDefaultValue in YAML Form 8

Set an element's default value using saved data.

Parameters

array $element: An element.

Overrides YamlFormElementBase::setDefaultValue

File

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

Class

YamlFormTest
Provides a 'yamlform_test' element.

Namespace

Drupal\yamlform_test\Plugin\YamlFormElement

Code

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