You are here

public static function FivestarItem::defaultStorageSettings in Fivestar 8

Defines the storage-level settings for this plugin.

Return value

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

Overrides FieldItemBase::defaultStorageSettings

File

src/Plugin/Field/FieldType/FivestarItem.php, line 84

Class

FivestarItem
Plugin implementation of the 'fivestar' field type.

Namespace

Drupal\fivestar\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return [
    'vote_type' => 'vote',
  ] + parent::defaultStorageSettings();
}