public function VerticalTabs::buildText in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/VerticalTabs.php \Drupal\webform\Plugin\WebformElement\VerticalTabs::buildText()
Build an element as text 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 text.
Overrides WebformElementBase::buildText
File
- src/
Plugin/ WebformElement/ VerticalTabs.php, line 100
Class
- VerticalTabs
- Provides a hidden 'vertical_tabs' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function buildText(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
// Vertical tab are not rendered when a submission is viewed.
return [];
}