public static function Yandex::getDefaultSettings in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 modules/geolocation_yandex/src/Plugin/geolocation/MapProvider/Yandex.php \Drupal\geolocation_yandex\Plugin\geolocation\MapProvider\Yandex::getDefaultSettings()
Provide a populated settings array.
Return value
array The settings array with the default map settings.
Overrides MapProviderBase::getDefaultSettings
2 calls to Yandex::getDefaultSettings()
- Yandex::getSettingsForm in modules/
geolocation_yandex/ src/ Plugin/ geolocation/ MapProvider/ Yandex.php - Provide a generic map settings form array.
- Yandex::getSettingsSummary in modules/
geolocation_yandex/ src/ Plugin/ geolocation/ MapProvider/ Yandex.php - Provide a summary array to use in field formatters.
File
- modules/
geolocation_yandex/ src/ Plugin/ geolocation/ MapProvider/ Yandex.php, line 22
Class
- Yandex
- Provides Yandex Maps API.
Namespace
Drupal\geolocation_yandex\Plugin\geolocation\MapProviderCode
public static function getDefaultSettings() {
return array_replace_recursive(parent::getDefaultSettings(), [
'zoom' => 10,
'height' => '400px',
'width' => '100%',
]);
}