You are here

protected function WebformLocationGeocomplete::defineDefaultProperties in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_location_geocomplete/src/Plugin/WebformElement/WebformLocationGeocomplete.php \Drupal\webform_location_geocomplete\Plugin\WebformElement\WebformLocationGeocomplete::defineDefaultProperties()

Define an element's default properties.

Return value

array An associative array contain an the element's default properties.

Overrides WebformLocationBase::defineDefaultProperties

File

modules/webform_location_geocomplete/src/Plugin/WebformElement/WebformLocationGeocomplete.php, line 31

Class

WebformLocationGeocomplete
Provides an 'location' element using Geocomplete.

Namespace

Drupal\webform_location_geocomplete\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  return [
    'geolocation' => FALSE,
    'hidden' => FALSE,
    'map' => FALSE,
    'api_key' => '',
  ] + parent::defineDefaultProperties() + $this
    ->defineDefaultBaseProperties();
}