You are here

public function YamlFormElementBase::getTestValue in YAML Form 8

Get test value for an element.

Parameters

array $element: An element.

\Drupal\yamlform\YamlFormInterface $yamlform: A form.

Return value

mixed A test value for an element.

Overrides YamlFormElementInterface::getTestValue

7 methods override YamlFormElementBase::getTestValue()
ContainerBase::getTestValue in src/Plugin/YamlFormElement/ContainerBase.php
Get test value for an element.
Table::getTestValue in src/Plugin/YamlFormElement/Table.php
Get test value for an element.
YamlFormCodeMirror::getTestValue in src/Plugin/YamlFormElement/YamlFormCodeMirror.php
Get test value for an element.
YamlFormCompositeBase::getTestValue in src/Plugin/YamlFormElement/YamlFormCompositeBase.php
Get test value for an element.
YamlFormLikert::getTestValue in src/Plugin/YamlFormElement/YamlFormLikert.php
Get test value for an element.

... See full list

File

src/YamlFormElementBase.php, line 654

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function getTestValue(array $element, YamlFormInterface $yamlform) {
  return '';
}