You are here

public static function RadioactivityReferenceItem::defaultFieldSettings in Radioactivity 4.0.x

Defines the field-level settings for this plugin.

Return value

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

Overrides EntityReferenceItem::defaultFieldSettings

File

src/Plugin/Field/FieldType/RadioactivityReferenceItem.php, line 44

Class

RadioactivityReferenceItem
Plugin implementation of the Radioactivity Reference field type.

Namespace

Drupal\radioactivity\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'default_energy' => 0,
  ] + parent::defaultFieldSettings();
}