public static function SimpleGMapFormatter::defaultSettings in Simple Google Maps 8
Same name and namespace in other branches
- 3.0.x src/Plugin/Field/FieldFormatter/SimpleGMapFormatter.php \Drupal\simple_gmap\Plugin\Field\FieldFormatter\SimpleGMapFormatter::defaultSettings()
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/ SimpleGMapFormatter.php, line 27
Class
- SimpleGMapFormatter
- Plugin implementation of the 'simple_gmap' formatter.
Namespace
Drupal\simple_gmap\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
"include_map" => TRUE,
"include_static_map" => FALSE,
"include_link" => FALSE,
"include_text" => FALSE,
"iframe_height" => "200",
"iframe_width" => "200",
"iframe_title" => "",
"static_scale" => 1,
"zoom_level" => "14",
"link_text" => "View larger map",
"map_type" => "m",
"langcode" => "en",
"apikey" => "",
] + parent::defaultSettings();
}