You are here

protected function WebformCompositeBase::formatTextItemValue in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/WebformCompositeBase.php \Drupal\webform\Plugin\WebformElement\WebformCompositeBase::formatTextItemValue()

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 text.

1 call to WebformCompositeBase::formatTextItemValue()
WebformCompositeBase::formatTextItem in src/Plugin/WebformElement/WebformCompositeBase.php
Format an element's value as text.
6 methods override WebformCompositeBase::formatTextItemValue()
WebformAddress::formatTextItemValue in src/Plugin/WebformElement/WebformAddress.php
Format composite element value into lines of text.
WebformContact::formatTextItemValue in src/Plugin/WebformElement/WebformContact.php
Format composite element value into lines of text.
WebformExampleComposite::formatTextItemValue in modules/webform_example_composite/src/Plugin/WebformElement/WebformExampleComposite.php
Format composite element value into lines of text.
WebformLink::formatTextItemValue in src/Plugin/WebformElement/WebformLink.php
Format composite element value into lines of text.
WebformName::formatTextItemValue in src/Plugin/WebformElement/WebformName.php
Format composite element value into lines of text.

... See full list

File

src/Plugin/WebformElement/WebformCompositeBase.php, line 681

Class

WebformCompositeBase
Provides a base for composite elements.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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