You are here

public static function MdStarRatingWidget::defaultSettings in Star Rating Form Display 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/MdStarRatingWidget.php, line 73

Class

MdStarRatingWidget
Plugin implementation of the 'starrating' widget.

Namespace

Drupal\starrating_formdisplay\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return [
    'fill_blank' => 1,
    'icon_type' => 'star',
    'icon_color' => 1,
  ] + parent::defaultSettings();
}