You are here

public function YamlFormElementInterface::setDefaultValue in YAML Form 8

Set an element's default value using saved data.

Parameters

array $element: An element.

1 method overrides YamlFormElementInterface::setDefaultValue()
YamlFormElementBase::setDefaultValue in src/YamlFormElementBase.php
Set an element's default value using saved data.

File

src/YamlFormElementInterface.php, line 262

Class

YamlFormElementInterface
Defines the interface for form elements.

Namespace

Drupal\yamlform

Code

public function setDefaultValue(array &$element);