You are here

public function WebformElementBase::buildText in Webform 8.5

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

1 call to WebformElementBase::buildText()
WebformVariant::buildText in src/Plugin/WebformElement/WebformVariant.php
Build an element as text element.
1 method overrides WebformElementBase::buildText()
VerticalTabs::buildText in src/Plugin/WebformElement/VerticalTabs.php
Build an element as text element.

File

src/Plugin/WebformElementBase.php, line 1323

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

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