public function WebformHeight::getTestValues in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/WebformHeight.php \Drupal\webform\Plugin\WebformElement\WebformHeight::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
File
- src/
Plugin/ WebformElement/ WebformHeight.php, line 95
Class
- WebformHeight
- Provides a 'height' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getTestValues(array $element, WebformInterface $webform, array $options = []) {
return rand(30, 60);
}