You are here

public static function GeolocationGoogleMapFormatter::defaultSettings in Geolocation Field 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/GeolocationGoogleMapFormatter.php, line 33

Class

GeolocationGoogleMapFormatter
Plugin implementation of the 'geolocation_googlemap' formatter.

Namespace

Drupal\geolocation\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [];
  $settings['title'] = '';
  $settings['set_marker'] = TRUE;
  $settings['common_map'] = FALSE;
  $settings['info_text'] = '';
  $settings += parent::defaultSettings();
  $settings['use_overridden_map_settings'] = FALSE;
  $settings += self::getGoogleMapDefaultSettings();
  return $settings;
}