public function WebformElementInterface::buildText in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::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.
1 method overrides WebformElementInterface::buildText()
- WebformElementBase::buildText in src/
Plugin/ WebformElementBase.php - Build an element as text element.
File
- src/
Plugin/ WebformElementInterface.php, line 476
Class
- WebformElementInterface
- Defines the interface for webform elements.
Namespace
Drupal\webform\PluginCode
public function buildText(array $element, WebformSubmissionInterface $webform_submission, array $options = []);