You are here

public function WebformLocationGeocomplete::getItemFormats in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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\WebformElement

Code

public function getItemFormats() {
  return parent::getItemFormats() + [
    'map' => $this
      ->t('Map'),
  ];
}