You are here

public function WebformElementBase::buildHtml in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::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.

Overrides WebformElementInterface::buildHtml

1 call to WebformElementBase::buildHtml()
WebformVariant::buildHtml in src/Plugin/WebformElement/WebformVariant.php
Build an element as HTML element.
2 methods override WebformElementBase::buildHtml()
VerticalTabs::buildHtml in src/Plugin/WebformElement/VerticalTabs.php
Build an element as HTML element.
WebformTableRow::buildHtml in src/Plugin/WebformElement/WebformTableRow.php
Build an element as HTML element.

File

src/Plugin/WebformElementBase.php, line 1316

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function buildHtml(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
  return $this
    ->build('html', $element, $webform_submission, $options);
}