You are here

public function LatLonFormatter::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 GeofieldDefaultFormatter::settingsSummary

File

src/Plugin/Field/FieldFormatter/LatLonFormatter.php, line 76

Class

LatLonFormatter
Plugin implementation of the 'geofield_latlon' formatter.

Namespace

Drupal\geofield\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary[] = $this
    ->t('Geospatial output format: @format', [
    '@format' => $this
      ->formatOptions()[$this
      ->getOutputFormat()],
  ]);
  return $summary;
}