public static function StarsFormatter::defaultSettings in Fivestar 8
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/ StarsFormatter.php, line 26
Class
- StarsFormatter
- Plugin implementation of the 'fivestar_stars' formatter.
Namespace
Drupal\fivestar\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'text_format' => 'average',
'display_format' => 'average',
'fivestar_widget' => 'basic',
] + parent::defaultSettings();
}