You are here

public function GoogleMap::getConfigurationDefaultValues in Google Map Field 8

Callback to get default configuration values.

Return value

array List of default configuration values.

1 call to GoogleMap::getConfigurationDefaultValues()
GoogleMap::defaultConfiguration in src/Feeds/Target/GoogleMap.php
Gets default configuration for this plugin.

File

src/Feeds/Target/GoogleMap.php, line 66

Class

GoogleMap
Defines a google map field mapper.

Namespace

Drupal\google_map_field\Feeds\Target

Code

public function getConfigurationDefaultValues() {
  $values = [
    'default_name' => 'Default location',
    'default_lat' => '51.524295',
    'default_lon' => '-0.12799',
    'default_zoom' => '9',
    'default_type' => 'roadmap',
    'default_width' => '100%',
    'default_height' => '450px',
    'default_marker' => '1',
    'default_traffic' => '0',
    'default_marker_icon' => '',
    'default_controls' => '1',
    'default_infowindow' => '',
  ];
  return $values;
}