You are here

public static function ControlGoogleElementBase::getDefaultSettings in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleElementBase.php \Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature\ControlGoogleElementBase::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides ControlElementBase::getDefaultSettings

3 calls to ControlGoogleElementBase::getDefaultSettings()
ControlGoogleElementBase::getSettingsForm in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleElementBase.php
Provide a generic map settings form array.
ControlGoogleMapType::getDefaultSettings in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleMapType.php
Provide a populated settings array.
ControlGoogleZoom::getDefaultSettings in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleZoom.php
Provide a populated settings array.
2 methods override ControlGoogleElementBase::getDefaultSettings()
ControlGoogleMapType::getDefaultSettings in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleMapType.php
Provide a populated settings array.
ControlGoogleZoom::getDefaultSettings in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleZoom.php
Provide a populated settings array.

File

modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlGoogleElementBase.php, line 15

Class

ControlGoogleElementBase
Class ControlMapFeatureBase.

Namespace

Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  $settings = parent::getDefaultSettings();
  $settings['position'] = 'RIGHT_CENTER';
  $settings['behavior'] = 'default';
  return $settings;
}