You are here

public function ContainerBase::getTestValues in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/ContainerBase.php \Drupal\webform\Plugin\WebformElement\ContainerBase::getTestValues()

Get test values for an element.

Parameters

array $element: An element.

\Drupal\webform\WebformInterface $webform: A webform.

array $options: Options used to generate a test value.

Return value

mixed A test value for an element.

Overrides WebformElementBase::getTestValues

1 method overrides ContainerBase::getTestValues()
WebformActions::getTestValues in src/Plugin/WebformElement/WebformActions.php
Get test values for an element.

File

src/Plugin/WebformElement/ContainerBase.php, line 280

Class

ContainerBase
Provides a base 'container' class.

Namespace

Drupal\webform\Plugin\WebformElement

Code

public function getTestValues(array $element, WebformInterface $webform, array $options = []) {

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