public function WebformElement::preview in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformElement.php \Drupal\webform\Plugin\WebformElement\WebformElement::preview()
Generate a renderable preview of the element.
Return value
array A renderable preview of the element.
Overrides WebformElementBase::preview
File
- src/
Plugin/ WebformElement/ WebformElement.php, line 39
Class
- WebformElement
- Provides a 'generic' element. Used as a fallback.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function preview() {
return [];
}