You are here

public function WebformSubmissionGenerateInterface::getTestValue in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionGenerateInterface.php \Drupal\webform\WebformSubmissionGenerateInterface::getTestValue()

Get test value for a webform element.

Parameters

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

string $name: The name of the element.

array $element: The FAPI element.

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

Return value

array|int|null An array containing multiple values or a single value.

1 method overrides WebformSubmissionGenerateInterface::getTestValue()
WebformSubmissionGenerate::getTestValue in src/WebformSubmissionGenerate.php
Get test value for a webform element.

File

src/WebformSubmissionGenerateInterface.php, line 39

Class

WebformSubmissionGenerateInterface
Defines an interface for webform submission generation.

Namespace

Drupal\webform

Code

public function getTestValue(WebformInterface $webform, $name, array $element, array $options = []);