protected function WebformEntityReferenceTrait::formatHtmlItems in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformEntityReferenceTrait.php \Drupal\webform\Plugin\WebformElement\WebformEntityReferenceTrait::formatHtmlItems()
File
- src/
Plugin/ WebformElement/ WebformEntityReferenceTrait.php, line 678
Class
- WebformEntityReferenceTrait
- Provides an 'entity_reference' trait.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function formatHtmlItems(array &$element, WebformSubmissionInterface $webform_submission, array $options = []) {
$format = $this
->getItemsFormat($element);
if (strpos($format, 'checklist:') === 0) {
$this
->setOptions($element);
}
return parent::formatHtmlItems($element, $webform_submission, $options);
}