You are here

public function YamlFormElementBase::setDefaultValue in YAML Form 8

Set an element's default value using saved data.

Parameters

array $element: An element.

Overrides YamlFormElementInterface::setDefaultValue

8 methods override YamlFormElementBase::setDefaultValue()
DateList::setDefaultValue in src/Plugin/YamlFormElement/DateList.php
Set an element's default value using saved data.
DateTime::setDefaultValue in src/Plugin/YamlFormElement/DateTime.php
Set an element's default value using saved data.
EntityAutocomplete::setDefaultValue in src/Plugin/YamlFormElement/EntityAutocomplete.php
Set an element's default value using saved data.
OptionsBase::setDefaultValue in src/Plugin/YamlFormElement/OptionsBase.php
Set an element's default value using saved data.
PasswordConfirm::setDefaultValue in src/Plugin/YamlFormElement/PasswordConfirm.php
Set an element's default value using saved data.

... See full list

File

src/YamlFormElementBase.php, line 534

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function setDefaultValue(array &$element) {
}