public function WebformElementInterface::formatText in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementInterface.php \Drupal\webform\Plugin\WebformElementInterface::formatText()
Format an element's value as plain text.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
array $options: An array of options.
Return value
array|string The element's value formatted as plain text or a render array.
1 method overrides WebformElementInterface::formatText()
- WebformElementBase::formatText in src/
Plugin/ WebformElementBase.php - Format an element's value as plain text.
File
- src/
Plugin/ WebformElementInterface.php, line 506
Class
- WebformElementInterface
- Defines the interface for webform elements.
Namespace
Drupal\webform\PluginCode
public function formatText(array $element, WebformSubmissionInterface $webform_submission, array $options = []);