You are here

public function ContainerBase::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 YamlFormElementBase::getTestValue

File

src/Plugin/YamlFormElement/ContainerBase.php, line 77

Class

ContainerBase
Provides a base 'container' class.

Namespace

Drupal\yamlform\Plugin\YamlFormElement

Code

public function getTestValue(array $element, YamlFormInterface $yamlform) {

  // Containers should never have values and therefore should never have
  // a test value.
  return NULL;
}