public function WebformComputedBase::formatTableColumn in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformComputedBase.php \Drupal\webform\Plugin\WebformElement\WebformComputedBase::formatTableColumn()
Format an element's table column value.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
array $options: An array of options returned from ::getTableColumns().
Return value
array|string The element's value formatted as an HTML string or a render array.
Overrides WebformElementBase::formatTableColumn
File
- src/
Plugin/ WebformElement/ WebformComputedBase.php, line 110
Class
- WebformComputedBase
- Provides a base class for 'webform_computed' elements.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function formatTableColumn(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
return [
'#markup' => $this
->formatHtml($element, $webform_submission),
];
}