media.schema.yml

Same filename in other branches
  1. 9 core/modules/media/config/schema/media.schema.yml
  2. 10 core/modules/media/config/schema/media.schema.yml
  3. 11.x core/modules/media/config/schema/media.schema.yml
core/modules/media/config/schema/media.schema.yml

File

core/modules/media/config/schema/media.schema.yml

View source
  1. media.settings:
  2. type: config_object
  3. label: 'Media settings'
  4. mapping:
  5. icon_base_uri:
  6. type: string
  7. label: 'Full URI to a folder where the media icons will be installed'
  8. iframe_domain:
  9. type: uri
  10. label: 'Domain from which to serve oEmbed content in an iframe'
  11. oembed_providers_url:
  12. type: uri
  13. label: 'The URL of the oEmbed providers database in JSON format'
  14. standalone_url:
  15. type: boolean
  16. label: 'Allow media items to be viewed standalone at /media/{id}'
  17. media.type.*:
  18. type: config_entity
  19. label: 'Media type'
  20. mapping:
  21. id:
  22. type: string
  23. label: 'Machine name'
  24. label:
  25. type: label
  26. label: 'Name'
  27. description:
  28. type: text
  29. label: 'Description'
  30. source:
  31. type: string
  32. label: 'Source'
  33. source_configuration:
  34. type: media.source.[%parent.source]
  35. queue_thumbnail_downloads:
  36. type: boolean
  37. label: 'Whether the thumbnail downloads should be queued'
  38. new_revision:
  39. type: boolean
  40. label: 'Whether a new revision should be created by default'
  41. field_map:
  42. type: sequence
  43. label: 'Field map'
  44. sequence:
  45. type: string
  46. field.formatter.settings.media_thumbnail:
  47. type: field.formatter.settings.image
  48. label: 'Media thumbnail field display format settings'
  49. field.formatter.settings.oembed:
  50. type: mapping
  51. label: 'oEmbed display format settings'
  52. mapping:
  53. max_width:
  54. type: integer
  55. label: 'Maximum width'
  56. max_height:
  57. type: integer
  58. label: 'Maximum height'
  59. field.widget.settings.oembed_textfield:
  60. type: field.widget.settings.string_textfield
  61. label: 'oEmbed widget format settings'
  62. media.source.*:
  63. type: mapping
  64. label: 'Media source settings'
  65. media.source.file:
  66. type: media.source.field_aware
  67. label: '"File" media source configuration'
  68. media.source.image:
  69. type: media.source.field_aware
  70. label: '"Image" media source configuration'
  71. media.source.audio_file:
  72. type: media.source.field_aware
  73. label: '"Audio" media source configuration'
  74. media.source.video_file:
  75. type: media.source.field_aware
  76. label: '"Video" media source configuration'
  77. media.source.oembed:*:
  78. type: media.source.field_aware
  79. label: 'oEmbed media source configuration'
  80. mapping:
  81. thumbnails_directory:
  82. type: uri
  83. label: 'URI of thumbnail storage directory'
  84. providers:
  85. type: sequence
  86. label: 'Allowed oEmbed providers'
  87. sequence:
  88. type: string
  89. label: 'Provider name'
  90. media.source.field_aware:
  91. type: mapping
  92. mapping:
  93. source_field:
  94. type: string
  95. label: 'Source field'
  96. filter_settings.media_embed:
  97. type: filter
  98. label: 'Media Embed'
  99. mapping:
  100. default_view_mode:
  101. type: string
  102. label: 'The view mode that is used by default'
  103. allowed_media_types:
  104. type: sequence
  105. label: 'Media types selectable in the Media Library'
  106. sequence:
  107. type: string
  108. label: 'Media type'
  109. allowed_view_modes:
  110. type: sequence
  111. label: 'View modes selectable in the "Edit media" dialog'
  112. sequence:
  113. type: string
  114. label: 'View mode'

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