protected function LatLonFormatter::getOutputFormat in Geofield 8
Returns the output format, set or default one.
Return value
string The output format string.
Overrides GeofieldDefaultFormatter::getOutputFormat
2 calls to LatLonFormatter::getOutputFormat()
- LatLonFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ LatLonFormatter.php - Returns a form to configure settings for the formatter.
- LatLonFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ LatLonFormatter.php - Builds a renderable array for a field value.
File
- src/
Plugin/ Field/ FieldFormatter/ LatLonFormatter.php, line 52
Class
- LatLonFormatter
- Plugin implementation of the 'geofield_latlon' formatter.
Namespace
Drupal\geofield\Plugin\Field\FieldFormatterCode
protected function getOutputFormat() {
return in_array($this
->getSetting('output_format'), array_keys($this
->formatOptions())) ? $this
->getSetting('output_format') : self::defaultSettings()['output_format'];
}