You are here

public function VerticalTabs::buildHtml in Webform 6.x

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

File

src/Plugin/WebformElement/VerticalTabs.php, line 92

Class

VerticalTabs
Provides a hidden 'vertical_tabs' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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

  // Vertical tab are not rendered when a submission is viewed.
  return [];
}