You are here

public function WebformCard::preview in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_cards/src/Plugin/WebformElement/WebformCard.php \Drupal\webform_cards\Plugin\WebformElement\WebformCard::preview()

Generate a renderable preview of the element.

Return value

array A renderable preview of the element.

Overrides WebformElementBase::preview

File

modules/webform_cards/src/Plugin/WebformElement/WebformCard.php, line 102

Class

WebformCard
Provides a 'card' element.

Namespace

Drupal\webform_cards\Plugin\WebformElement

Code

public function preview() {
  return [];
}