public static function VotingApiWidget::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/ FieldWidget/ VotingApiWidget.php, line 31
Class
- VotingApiWidget
- Plugin implementation of the 'voting_api_widget' widget.
Namespace
Drupal\votingapi_widgets\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'show_initial_vote' => 0,
];
}