public function GeofieldDefaultFormatter::settingsSummary in Geofield 8
Returns a short summary for the current formatter settings.
If an empty result is returned, a UI can still be provided to display a settings form in case the formatter has configurable settings.
Return value
string[] A short summary of the formatter settings.
Overrides FormatterBase::settingsSummary
1 method overrides GeofieldDefaultFormatter::settingsSummary()
- LatLonFormatter::settingsSummary in src/
Plugin/ Field/ FieldFormatter/ LatLonFormatter.php - Returns a short summary for the current formatter settings.
File
- src/
Plugin/ Field/ FieldFormatter/ GeofieldDefaultFormatter.php, line 140
Class
- GeofieldDefaultFormatter
- Plugin implementation of the 'geofield_default' formatter.
Namespace
Drupal\geofield\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[] = $this
->t('Geospatial output format: @format', [
'@format' => $this
->getOutputFormat(),
]);
return $summary;
}