public function WebformElementInterface::formatHtml in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::formatHtml()
Format an element's value as HTML.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
array $options: An array of options.
Return value
array|string The element's value formatted as an HTML string or a render array.
1 method overrides WebformElementInterface::formatHtml()
- WebformElementBase::formatHtml in src/
Plugin/ WebformElementBase.php - Format an element's value as HTML.
File
- src/
Plugin/ WebformElementInterface.php, line 491
Class
- WebformElementInterface
- Defines the interface for webform elements.
Namespace
Drupal\webform\PluginCode
public function formatHtml(array $element, WebformSubmissionInterface $webform_submission, array $options = []);