public static function VotingApiReactionFormatter::defaultSettings in Voting API Reaction 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/ VotingApiReactionFormatter.php, line 82
Class
- VotingApiReactionFormatter
- Plugin implementation of the 'votingapi_reaction_default' formatter.
Namespace
Drupal\votingapi_reaction\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'show_summary' => TRUE,
'show_icon' => TRUE,
'show_label' => TRUE,
'show_count' => TRUE,
'sort_reactions' => 'desc',
] + parent::defaultSettings();
}