file.schema.yml

Same filename and directory in other branches
  1. 10 core/modules/file/config/schema/file.schema.yml
  2. 9 core/modules/file/config/schema/file.schema.yml
  3. 8.9.x core/modules/file/config/schema/file.schema.yml
core/modules/file/config/schema/file.schema.yml

File

core/modules/file/config/schema/file.schema.yml

View source
  1. # Schema for the configuration files of the File module.
  2. file.settings:
  3. type: config_object
  4. label: 'File settings'
  5. mapping:
  6. description:
  7. type: mapping
  8. label: 'Description'
  9. mapping:
  10. type:
  11. type: string
  12. label: 'Type'
  13. length:
  14. type: integer
  15. label: 'Length'
  16. icon:
  17. type: mapping
  18. label: 'Icon'
  19. mapping:
  20. directory:
  21. type: path
  22. label: 'Directory'
  23. make_unused_managed_files_temporary:
  24. type: boolean
  25. label: 'Controls if unused files should be marked temporary'
  26. filename_sanitization:
  27. type: mapping
  28. label: 'Uploaded filename sanitization options'
  29. mapping:
  30. transliterate:
  31. type: boolean
  32. label: 'Transliterate'
  33. replace_whitespace:
  34. type: boolean
  35. label: 'Replace whitespace'
  36. replace_non_alphanumeric:
  37. type: boolean
  38. label: 'Replace non-alphanumeric characters except dot, underscore and dash'
  39. deduplicate_separators:
  40. type: boolean
  41. label: 'Replace sequences of dots, underscores and/or dashes with the replacement character'
  42. lowercase:
  43. type: boolean
  44. label: 'Convert to lowercase'
  45. replacement_character:
  46. type: string
  47. label: 'Character to use in replacements'
  48. field.storage_settings.file:
  49. type: base_entity_reference_field_settings
  50. label: 'File settings'
  51. mapping:
  52. display_field:
  53. type: boolean
  54. label: 'Enable Display field'
  55. display_default:
  56. type: boolean
  57. label: 'Files displayed by default'
  58. uri_scheme:
  59. type: string
  60. label: 'Upload destination'
  61. field.value.file:
  62. type: mapping
  63. label: 'Default value'
  64. base_file_field_field_settings:
  65. type: mapping
  66. mapping:
  67. handler:
  68. type: string
  69. label: 'Reference method'
  70. handler_settings:
  71. type: entity_reference_selection.[%parent.handler]
  72. label: 'File selection handler settings'
  73. file_directory:
  74. type: string
  75. label: 'File directory'
  76. file_extensions:
  77. type: string
  78. label: 'Allowed file extensions'
  79. max_filesize:
  80. type: string
  81. label: 'Maximum upload size'
  82. field.field_settings.file:
  83. type: base_file_field_field_settings
  84. label: 'File settings'
  85. mapping:
  86. description_field:
  87. type: boolean
  88. label: 'Enable Description field'
  89. file.formatter.media:
  90. type: mapping
  91. label: 'Media display format settings'
  92. constraints:
  93. FullyValidatable: ~
  94. mapping:
  95. controls:
  96. type: boolean
  97. label: 'Show playback controls'
  98. autoplay:
  99. type: boolean
  100. label: 'Autoplay'
  101. loop:
  102. type: boolean
  103. label: 'Loop'
  104. # @see \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::settingsForm
  105. multiple_file_display_type:
  106. type: string
  107. label: 'Display of multiple files'
  108. constraints:
  109. # @see \Drupal\file\Plugin\Field\FieldFormatter\FileMediaFormatterBase::settingsSummary()
  110. Choice:
  111. choices:
  112. # Multiple file display: Multiple HTML tags
  113. - tags
  114. # Multiple file display: One HTML tag with multiple sources
  115. - sources
  116. field.formatter.settings.file_audio:
  117. type: file.formatter.media
  118. label: 'Audio file display format settings'
  119. field.formatter.settings.file_video:
  120. type: file.formatter.media
  121. label: 'Video file display format settings'
  122. constraints:
  123. FullyValidatable: ~
  124. mapping:
  125. muted:
  126. type: boolean
  127. label: 'Muted'
  128. playsinline:
  129. type: boolean
  130. label: 'Plays inline'
  131. requiredKey: false
  132. width:
  133. type: integer
  134. label: 'Width'
  135. nullable: true
  136. constraints:
  137. Range:
  138. min: 1
  139. height:
  140. type: integer
  141. label: 'Height'
  142. nullable: true
  143. constraints:
  144. Range:
  145. min: 1
  146. field.formatter.settings.file_default:
  147. type: mapping
  148. label: 'Generic file format settings'
  149. mapping:
  150. use_description_as_link_text:
  151. type: boolean
  152. label: 'Replace the file name by its description when available'
  153. field.formatter.settings.file_rss_enclosure:
  154. type: mapping
  155. label: 'RSS enclosure format settings'
  156. field.formatter.settings.file_table:
  157. type: field.formatter.settings.file_default
  158. label: 'Table of files format settings'
  159. field.formatter.settings.file_url_plain:
  160. type: mapping
  161. label: 'URL to file format settings'
  162. field.widget.settings.file_generic:
  163. type: mapping
  164. label: 'File format settings'
  165. mapping:
  166. progress_indicator:
  167. type: string
  168. label: 'Progress indicator'
  169. field_formatter_settings_base_file:
  170. type: mapping
  171. mapping:
  172. link_to_file:
  173. type: boolean
  174. label: 'Link to file'
  175. field.formatter.settings.file_link:
  176. type: field_formatter_settings_base_file
  177. field.formatter.settings.file_uri:
  178. type: field_formatter_settings_base_file
  179. mapping:
  180. file_download_path:
  181. type: boolean
  182. label: 'Display download path'
  183. field.formatter.settings.file_filemime:
  184. type: field_formatter_settings_base_file
  185. mapping:
  186. filemime_image:
  187. type: boolean
  188. label: 'Display the filemime as icon'
  189. field.formatter.settings.file_extension:
  190. type: field_formatter_settings_base_file
  191. mapping:
  192. extension_detect_tar:
  193. type: boolean
  194. label: 'Detect tar'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.