public function GeolocationGeometryWidgetGoogleMaps::settingsSummary in Geolocation Field 8.3
Returns a short summary for the current widget settings.
If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings.
Return value
array A short summary of the widget settings.
Overrides WidgetBase::settingsSummary
File
- modules/
geolocation_google_maps/ src/ Plugin/ Field/ FieldWidget/ GeolocationGeometryWidgetGoogleMaps.php, line 104
Class
- GeolocationGeometryWidgetGoogleMaps
- Plugin implementation of 'geolocation_geometry_widget_google_maps' widget.
Namespace
Drupal\geolocation_google_maps\Plugin\Field\FieldWidgetCode
public function settingsSummary() {
$summary = [];
$settings = $this
->getSettings();
$map_provider_settings = empty($settings[$this->mapProviderSettingsFormId]) ? [] : $settings[$this->mapProviderSettingsFormId];
$summary = array_replace_recursive($summary, $this->mapProvider
->getSettingsSummary($map_provider_settings));
return $summary;
}