public function WebformElementBase::getTestValues in Webform 6.x
Same name and namespace in other branches
- 8.5 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.
File
- src/
Plugin/ WebformElementBase.php, line 1819
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function getTestValues(array $element, WebformInterface $webform, array $options = []) {
return FALSE;
}