public function WebformCompositeBase::getItemFormats in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformCompositeBase.php \Drupal\webform\Plugin\WebformElement\WebformCompositeBase::getItemFormats()
Get an element's available single value formats.
Return value
array An associative array of single value formats containing name/label pairs.
Overrides WebformElementBase::getItemFormats
1 call to WebformCompositeBase::getItemFormats()
- WebformLocationGeocomplete::getItemFormats in modules/
webform_location_geocomplete/ src/ Plugin/ WebformElement/ WebformLocationGeocomplete.php - Get an element's available single value formats.
1 method overrides WebformCompositeBase::getItemFormats()
- WebformLocationGeocomplete::getItemFormats in modules/
webform_location_geocomplete/ src/ Plugin/ WebformElement/ WebformLocationGeocomplete.php - Get an element's available single value formats.
File
- src/
Plugin/ WebformElement/ WebformCompositeBase.php, line 688
Class
- WebformCompositeBase
- Provides a base for composite elements.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function getItemFormats() {
return parent::getItemFormats() + [
'list' => $this
->t('List'),
];
}