public function YamlFormSubmissionGenerateInterface::getTestValue in YAML Form 8
Get test value for a form element.
Parameters
\Drupal\yamlform\YamlFormInterface $yamlform: A form.
string $name: The name of the element.
array $element: The FAPI element.
Return value
array|int|null An array containing multiple values or a single value.
1 method overrides YamlFormSubmissionGenerateInterface::getTestValue()
- YamlFormSubmissionGenerate::getTestValue in src/
YamlFormSubmissionGenerate.php - Get test value for a form element.
File
- src/
YamlFormSubmissionGenerateInterface.php, line 37
Class
- YamlFormSubmissionGenerateInterface
- Defines an interface for form submission generation.
Namespace
Drupal\yamlformCode
public function getTestValue(YamlFormInterface $yamlform, $name, array $element);