file.schema.yml 3.04 KB
Newer Older
1
# Schema for the configuration files of the File module.
2 3

file.settings:
4
  type: config_object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  label: 'File settings'
  mapping:
    description:
      type: mapping
      label: 'Description'
      mapping:
        type:
          type: string
          label: 'Type'
        length:
          type: integer
          label: 'Length'
    icon:
      type: mapping
      label: 'Icon'
      mapping:
        directory:
          type: path
          label: 'Directory'
24 25 26
    make_unused_managed_files_temporary:
      type: boolean
      label: 'Controls if unused files should be marked temporary'
27

28
field.storage_settings.file:
29
  type: base_entity_reference_field_settings
30 31 32 33 34 35 36 37 38 39 40 41
  label: 'File settings'
  mapping:
    display_field:
      type: boolean
      label: 'Enable Display field'
    display_default:
      type: boolean
      label: 'Files displayed by default'
    uri_scheme:
      type: string
      label: 'Upload destination'

42 43
field.value.file:
  type: mapping
44 45
  label: 'Default value'

46
base_file_field_field_settings:
47 48
  type: mapping
  mapping:
49 50 51
    handler:
      type: string
      label: 'Reference method'
52 53
    handler_settings:
      type: entity_reference_selection.[%parent.handler]
54
      label: 'File selection handler settings'
55 56 57 58 59 60 61 62 63
    file_directory:
      type: string
      label: 'File directory'
    file_extensions:
      type: string
      label: 'Allowed file extensions'
    max_filesize:
      type: string
      label: 'Maximum upload size'
64

65
field.field_settings.file:
66
  type: base_file_field_field_settings
67 68
  label: 'File settings'
  mapping:
69 70 71
    description_field:
      type: boolean
      label: 'Enable Description field'
72

73 74
field.formatter.settings.file_default:
  type: mapping
75
  label: 'Generic file format settings'
76 77 78 79
  mapping:
    use_description_as_link_text:
      type: boolean
      label: 'Replace the file name by its description when available'
80

81 82
field.formatter.settings.file_rss_enclosure:
  type: mapping
83 84
  label: 'RSS enclosure format settings'

85
field.formatter.settings.file_table:
86
  type: field.formatter.settings.file_default
87 88
  label: 'Table of files format settings'

89 90
field.formatter.settings.file_url_plain:
  type: mapping
91 92
  label: 'URL to file format settings'

93 94
field.widget.settings.file_generic:
  type: mapping
95 96
  label: 'File format settings'
  mapping:
97 98 99
    progress_indicator:
      type: string
      label: 'Progress indicator'
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130

field_formatter_settings_base_file:
  type: mapping
  mapping:
    link_to_file:
      type: boolean
      label: 'Link to file'

field.formatter.settings.file_link:
  type: field_formatter_settings_base_file

field.formatter.settings.file_uri:
  type: field_formatter_settings_base_file
  mapping:
    file_download_path:
      type: boolean
      label: 'Display download path'

field.formatter.settings.file_filemime:
  type: field_formatter_settings_base_file
  mapping:
    filemime_image:
      type: boolean
      label: 'Display the filemime as icon'

field.formatter.settings.file_extension:
  type: field_formatter_settings_base_file
  mapping:
    extension_detect_tar:
      type: boolean
      label: 'Detect tar'