You are here

protected function LatLonFormatter::formatOptions in Geofield 8

Helper function to get the formatter settings options.

Return value

array The formatter settings options.

2 calls to LatLonFormatter::formatOptions()
LatLonFormatter::getOutputFormat in src/Plugin/Field/FieldFormatter/LatLonFormatter.php
Returns the output format, set or default one.
LatLonFormatter::settingsForm in src/Plugin/Field/FieldFormatter/LatLonFormatter.php
Returns a form to configure settings for the formatter.

File

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

Class

LatLonFormatter
Plugin implementation of the 'geofield_latlon' formatter.

Namespace

Drupal\geofield\Plugin\Field\FieldFormatter

Code

protected function formatOptions() {
  return [
    'decimal' => $this
      ->t("Decimal Format (17.76972)"),
    'dms' => $this
      ->t("DMS Format (17° 46' 11'' N)"),
    'dm' => $this
      ->t("DM Format (17° 46.19214' N)"),
    'wkt' => $this
      ->t("WKT"),
  ];
}