You are here

public static function VotingApiField::defaultFieldSettings in Votingapi Widgets 8

Defines the field-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FieldItemBase::defaultFieldSettings

File

src/Plugin/Field/FieldType/VotingApiField.php, line 40

Class

VotingApiField
Plugin implementation of the 'voting_api_field' field type.

Namespace

Drupal\votingapi_widgets\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'result_function' => 'vote_average',
    'widget_format' => 'fivestar',
    'anonymous_window' => -1,
    'user_window' => -1,
  ] + parent::defaultFieldSettings();
}