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