public function MapFeatureBase::getSettings in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 src/MapFeatureBase.php \Drupal\geolocation\MapFeatureBase::getSettings()
Provide map feature specific settings ready to handover to JS.
Parameters
array $settings: Current general map settings. Might contain unrelated settings as well.
Return value
array An array only containing keys defined in this plugin.
Overrides MapFeatureInterface::getSettings
41 calls to MapFeatureBase::getSettings()
- ContextPopup::alterMap in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapFeature/ ContextPopup.php - Alter render array.
- ContextPopup::getSettingsForm in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapFeature/ ContextPopup.php - Provide a generic map settings form array.
- ControlCustomGeocoder::alterMap in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapFeature/ ControlCustomGeocoder.php - Alter render array.
- Drawing::alterMap in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapFeature/ Drawing.php - Alter render array.
- Drawing::getSettingsForm in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapFeature/ Drawing.php - Provide a generic map settings form array.
File
- src/
MapFeatureBase.php, line 38
Class
- MapFeatureBase
- Class MapFeatureBase.
Namespace
Drupal\geolocationCode
public function getSettings(array $settings) {
$default_settings = $this
->getDefaultSettings();
$settings = array_replace_recursive($default_settings, $settings);
return $settings;
}