You are here

public static function ControlElementBase::getDefaultSettings in Geolocation Field 8.3

Same name in this branch
  1. 8.3 modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlElementBase.php \Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature\ControlElementBase::getDefaultSettings()
  2. 8.3 modules/geolocation_yandex/src/Plugin/geolocation/MapFeature/ControlElementBase.php \Drupal\geolocation_yandex\Plugin\geolocation\MapFeature\ControlElementBase::getDefaultSettings()
  3. 8.3 modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/ControlElementBase.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature\ControlElementBase::getDefaultSettings()
Same name and namespace in other branches
  1. 8.2 modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlElementBase.php \Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature\ControlElementBase::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides MapFeatureBase::getDefaultSettings

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

File

modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/ControlElementBase.php, line 17

Class

ControlElementBase
Class ControlMapFeatureBase.

Namespace

Drupal\geolocation_google_maps\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  return [
    'position' => 'TOP_LEFT',
  ];
}