You are here

public function WebformTestComposite::preview in Webform 6.x

Same name in this branch
  1. 6.x tests/modules/webform_test_element/src/Element/WebformTestComposite.php \Drupal\webform_test_element\Element\WebformTestComposite::preview()
  2. 6.x tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestComposite.php \Drupal\webform_test_element\Plugin\WebformElement\WebformTestComposite::preview()
Same name and namespace in other branches
  1. 8.5 tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestComposite.php \Drupal\webform_test_element\Plugin\WebformElement\WebformTestComposite::preview()

Generate a renderable preview of the element.

Return value

array A renderable preview of the element.

Overrides WebformElementBase::preview

File

tests/modules/webform_test_element/src/Plugin/WebformElement/WebformTestComposite.php, line 24

Class

WebformTestComposite
Provides a 'webform_test_composite' element.

Namespace

Drupal\webform_test_element\Plugin\WebformElement

Code

public function preview() {
  return [];
}