You are here

public static function StarsWidget::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/FieldWidget/StarsWidget.php, line 25

Class

StarsWidget
Plugin implementation of the 'fivestar_stars' widget.

Namespace

Drupal\fivestar\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'display_format' => 'average',
    'text_format' => 'none',
    'fivestar_widget' => 'basic',
  ] + parent::defaultSettings();
}