You are here

protected function WebformEntityReferenceTrait::formatTextItems in Webform 6.x

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

File

src/Plugin/WebformElement/WebformEntityReferenceTrait.php, line 689

Class

WebformEntityReferenceTrait
Provides an 'entity_reference' trait.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function formatTextItems(array &$element, WebformSubmissionInterface $webform_submission, array $options = []) {
  $format = $this
    ->getItemsFormat($element);
  if (strpos($format, 'checklist:') === 0) {
    $this
      ->setOptions($element);
  }
  return parent::formatTextItems($element, $webform_submission, $options);
}