Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / media / config / schema / media.schema.yml
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
15 media.type.*:
16   type: config_entity
17   label: 'Media type'
18   mapping:
19     id:
20       type: string
21       label: 'Machine name'
22     label:
23       type: label
24       label: 'Name'
25     description:
26       type: text
27       label: 'Description'
28     source:
29       type: string
30       label: 'Source'
31     source_configuration:
32       type: media.source.[%parent.source]
33     queue_thumbnail_downloads:
34       type: boolean
35       label: 'Whether the thumbnail downloads should be queued'
36     new_revision:
37       type: boolean
38       label: 'Whether a new revision should be created by default'
39     field_map:
40       type: sequence
41       label: 'Field map'
42       sequence:
43         type: string
44
45 field.formatter.settings.media_thumbnail:
46   type: field.formatter.settings.image
47   label: 'Media thumbnail field display format settings'
48
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
60 field.widget.settings.oembed_textfield:
61   type: field.widget.settings.string_textfield
62   label: 'oEmbed widget format settings'
63
64 media.source.*:
65   type: mapping
66   label: 'Media source settings'
67
68 media.source.file:
69   type: media.source.field_aware
70   label: '"File" media source configuration'
71
72 media.source.image:
73   type: media.source.field_aware
74   label: '"Image" media source configuration'
75
76 media.source.audio_file:
77   type: media.source.field_aware
78   label: '"Audio" media source configuration'
79
80 media.source.video_file:
81   type: media.source.field_aware
82   label: '"Video" media source configuration'
83
84 media.source.oembed:*:
85   type: media.source.field_aware
86   label: 'oEmbed media source configuration'
87   mapping:
88     thumbnails_directory:
89       type: uri
90       label: 'URI of thumbnail storage directory'
91     providers:
92       type: sequence
93       label: 'Allowed oEmbed providers'
94       sequence:
95         type: string
96         label: 'Provider name'
97
98 media.source.field_aware:
99   type: mapping
100   mapping:
101     source_field:
102       type: string
103       label: 'Source field'