You are here

public static function Here::getDefaultSettings in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 modules/geolocation_here/src/Plugin/geolocation/MapProvider/Here.php \Drupal\geolocation_here\Plugin\geolocation\MapProvider\Here::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides MapProviderBase::getDefaultSettings

2 calls to Here::getDefaultSettings()
Here::getSettingsForm in modules/geolocation_here/src/Plugin/geolocation/MapProvider/Here.php
Provide a generic map settings form array.
Here::getSettingsSummary in modules/geolocation_here/src/Plugin/geolocation/MapProvider/Here.php
Provide a summary array to use in field formatters.

File

modules/geolocation_here/src/Plugin/geolocation/MapProvider/Here.php, line 22

Class

Here
Provides HERE Maps API.

Namespace

Drupal\geolocation_here\Plugin\geolocation\MapProvider

Code

public static function getDefaultSettings() {
  return array_replace_recursive(parent::getDefaultSettings(), [
    'zoom' => 10,
    'height' => '400px',
    'width' => '100%',
  ]);
}