public static function FivestarItem::defaultFieldSettings in Fivestar 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/ FivestarItem.php, line 68
Class
- FivestarItem
- Plugin implementation of the 'fivestar' field type.
Namespace
Drupal\fivestar\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return [
'stars' => 5,
'allow_clear' => FALSE,
'allow_revote' => TRUE,
'allow_ownvote' => TRUE,
'rated_while' => 'viewing',
'enable_voting_target' => FALSE,
'target_bridge_field' => '',
'target_fivestar_field' => '',
] + parent::defaultFieldSettings();
}