You are here

public function WebformElementInterface::buildHtml in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\Plugin

Code

public function buildHtml(array $element, WebformSubmissionInterface $webform_submission, array $options = []);