public function WebformLocationGeocomplete::getItemFormats in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_location_geocomplete/src/Plugin/WebformElement/WebformLocationGeocomplete.php \Drupal\webform_location_geocomplete\Plugin\WebformElement\WebformLocationGeocomplete::getItemFormats()
Get an element's available single value formats.
Return value
array An associative array of single value formats containing name/label pairs.
Overrides WebformCompositeBase::getItemFormats
File
- modules/
webform_location_geocomplete/ src/ Plugin/ WebformElement/ WebformLocationGeocomplete.php, line 100
Class
- WebformLocationGeocomplete
- Provides an 'location' element using Geocomplete.
Namespace
Drupal\webform_location_geocomplete\Plugin\WebformElementCode
public function getItemFormats() {
return parent::getItemFormats() + [
'map' => $this
->t('Map'),
];
}