You are here

public function WebformElementBase::formatTableColumn in Webform 8.5

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

4 methods override WebformElementBase::formatTableColumn()
WebformCompositeBase::formatTableColumn in src/Plugin/WebformElement/WebformCompositeBase.php
Format an element's table column value.
WebformComputedBase::formatTableColumn in src/Plugin/WebformElement/WebformComputedBase.php
Format an element's table column value.
WebformLikert::formatTableColumn in src/Plugin/WebformElement/WebformLikert.php
Format an element's table column value.
WebformMapping::formatTableColumn in src/Plugin/WebformElement/WebformMapping.php
Format an element's table column value.

File

src/Plugin/WebformElementBase.php, line 1919

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function formatTableColumn(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
  return $this
    ->formatHtml($element, $webform_submission);
}