public static function VotingApiFormatter::defaultSettings in Votingapi Widgets 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/ VotingApiFormatter.php, line 30
Class
- VotingApiFormatter
- Plugin implementation of the 'voting_api_formatter' formatter.
Namespace
Drupal\votingapi_widgets\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'readonly' => FALSE,
'style' => 'default',
'show_results' => FALSE,
'values' => [],
'show_own_vote' => FALSE,
] + parent::defaultSettings();
}