Interim commit.
[yaffs-website] / web / modules / contrib / linkit / config / schema / linkit.schema.yml
1 # Schema for the configuration files of the Linkit module.
2
3 linkit.linkit_profile.*:
4   type: config_entity
5   mapping:
6     label:
7       type: label
8       label: 'Name'
9     id:
10       type: string
11     description:
12       type: string
13     attributes:
14       type: sequence
15       sequence:
16         type: linkit.attribute
17     matchers:
18       type: sequence
19       sequence:
20         type: linkit.matcher
21
22 linkit.attribute:
23   type: mapping
24   mapping:
25     id:
26       type: string
27     settings:
28       type: linkit.attribute.[%parent.id]
29     weight:
30       type: integer
31
32 linkit.attribute.*:
33   type: mapping
34   label: 'Attribute settings'
35
36 # Plugin \Drupal\linkit\Plugin\Linkit\Attribute\Target
37 linkit.attribute.target:
38   type: linkit.attribute
39   mapping:
40     widget_type:
41       type: string
42
43 # Plugin \Drupal\linkit\Plugin\Linkit\Attribute\Title
44 linkit.attribute.title:
45   type: linkit.attribute
46   mapping:
47     automatic_title:
48       type: boolean
49
50 linkit.matcher:
51   type: mapping
52   mapping:
53     id:
54       type: string
55     uuid:
56       type: string
57     settings:
58       type: linkit.matcher.[%parent.id]
59     weight:
60       type: integer
61
62 linkit.matcher.*:
63   type: mapping
64   label: 'Matcher settings'
65
66 linkit.matcher.entity:
67   type: mapping
68   mapping:
69     result_description:
70       type: string
71     bundles:
72       type: sequence
73       sequence:
74         type: string
75       nullable: true
76     group_by_bundle:
77       type: boolean
78
79 linkit.matcher.entity:*:
80   type: linkit.matcher.entity
81
82 # Plugin \Drupal\linkit\Plugin\Linkit\Matcher\FileMatcher
83 linkit.matcher.entity:file:
84   type: linkit.matcher.entity
85   mapping:
86     images:
87       type: mapping
88       mapping:
89         show_dimensions:
90           type: boolean
91         show_thumbnail:
92           type: boolean
93         thumbnail_image_style:
94           type: string
95           nullable: true
96
97 # Plugin \Drupal\linkit\Plugin\Linkit\Matcher\NodeMatcher
98 linkit.matcher.entity:node:
99   type: linkit.matcher.entity
100   mapping:
101     include_unpublished:
102       type: boolean
103
104 # Plugin \Drupal\linkit\Plugin\Linkit\Matcher\UserMatcher
105 linkit.matcher.entity:user:
106   type: linkit.matcher.entity
107   mapping:
108     roles:
109       type: sequence
110       sequence:
111         type: string
112       nullable: true
113     include_blocked:
114       type: boolean
115
116 # Third party settings on behalf of the imce module.
117 linkit.linkit_profile.*.third_party.imce:
118   type: mapping
119   mapping:
120     use:
121       type: boolean
122     scheme:
123       type: string
124
125 ckeditor.plugin.linkit:
126   type: mapping
127   label: 'Profile dropdown'
128   mapping:
129     linkit_profile:
130       type: string
131       label: 'List of profiles'