You are here

public static function LibraryItemFieldType::defaultFieldSettings in Library 8

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/LibraryItemFieldType.php, line 24

Class

LibraryItemFieldType
Plugin implementation of the 'library_item_field_type' field type.

Namespace

Drupal\library\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  $settings = parent::defaultFieldSettings();
  $settings['due_date'] = 30;
  $settings['barcode_generation'] = TRUE;
  return $settings;
}