public function ProcessedText::preview in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/ProcessedText.php \Drupal\webform\Plugin\WebformElement\ProcessedText::preview()
Generate a renderable preview of the element.
Return value
array A renderable preview of the element.
Overrides WebformElementBase::preview
File
- src/
Plugin/ WebformElement/ ProcessedText.php, line 76
Class
- ProcessedText
- Provides a 'processed_text' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function preview() {
return \Drupal::moduleHandler()
->moduleExists('filter') ? parent::preview() : [];
}