You are here

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

Defines the storage-level settings for this plugin.

Return value

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

Overrides EntityReferenceItem::defaultStorageSettings

File

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

Class

RadioactivityReferenceItem
Plugin implementation of the Radioactivity Reference field type.

Namespace

Drupal\radioactivity\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return [
    'target_type' => 'radioactivity',
    'profile' => 'decay',
    'halflife' => 60 * 60 * 12,
    'granularity' => 60 * 15,
    'cutoff' => 1,
  ] + parent::defaultStorageSettings();
}