You are here

public static function GeolocationTokenFormatter::defaultSettings in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldFormatter/GeolocationTokenFormatter.php \Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationTokenFormatter::defaultSettings()
  2. 8.2 src/Plugin/Field/FieldFormatter/GeolocationTokenFormatter.php \Drupal\geolocation\Plugin\Field\FieldFormatter\GeolocationTokenFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/GeolocationTokenFormatter.php, line 30

Class

GeolocationTokenFormatter
Plugin implementation of the 'geolocation_token' formatter.

Namespace

Drupal\geolocation\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [];
  $settings['tokenized_text'] = '';
  $settings += parent::defaultSettings();
  return $settings;
}