You are here

public function WebformElementBase::getTestValues in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::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 WebformElementInterface::getTestValues

23 methods override WebformElementBase::getTestValues()
BooleanBase::getTestValues in src/Plugin/WebformElement/BooleanBase.php
Get test values for an element.
ContainerBase::getTestValues in src/Plugin/WebformElement/ContainerBase.php
Get test values for an element.
DateBase::getTestValues in src/Plugin/WebformElement/DateBase.php
Get test values for an element.
Hidden::getTestValues in src/Plugin/WebformElement/Hidden.php
Get test values for an element.
NumericBase::getTestValues in src/Plugin/WebformElement/NumericBase.php
Get test values for an element.

... See full list

File

src/Plugin/WebformElementBase.php, line 1891

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

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