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