You are here

public static function FileLinkItem::defaultFieldSettings in File Link 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldType/FileLinkItem.php \Drupal\file_link\Plugin\Field\FieldType\FileLinkItem::defaultFieldSettings()

Defines the field-level settings for this plugin.

Return value

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

Overrides LinkItem::defaultFieldSettings

File

src/Plugin/Field/FieldType/FileLinkItem.php, line 71

Class

FileLinkItem
Implements a 'file_link' plugin field type.

Namespace

Drupal\file_link\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'file_extensions' => 'txt',
    'no_extension' => FALSE,
  ] + parent::defaultFieldSettings();
}