You are here

protected function WebformExampleComposite::formatHtmlItemValue in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_example_composite/src/Plugin/WebformElement/WebformExampleComposite.php \Drupal\webform_example_composite\Plugin\WebformElement\WebformExampleComposite::formatHtmlItemValue()

Format composite element value into lines of text.

Parameters

array $element: An element.

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

array $options: An array of options.

Return value

array Composite element values converted into lines of html.

Overrides WebformCompositeBase::formatHtmlItemValue

File

modules/webform_example_composite/src/Plugin/WebformElement/WebformExampleComposite.php, line 32

Class

WebformExampleComposite
Provides a 'webform_example_composite' element.

Namespace

Drupal\webform_example_composite\Plugin\WebformElement

Code

protected function formatHtmlItemValue(array $element, WebformSubmissionInterface $webform_submission, array $options = []) {
  return $this
    ->formatTextItemValue($element, $webform_submission, $options);
}