config_schema_test.schema.yml

Same filename in other branches
  1. 9 core/modules/config/tests/config_schema_test/config/schema/config_schema_test.schema.yml
  2. 8.9.x core/modules/config/tests/config_schema_test/config/schema/config_schema_test.schema.yml
  3. 10 core/modules/config/tests/config_schema_test/config/schema/config_schema_test.schema.yml
core/modules/config/tests/config_schema_test/config/schema/config_schema_test.schema.yml

File

core/modules/config/tests/config_schema_test/config/schema/config_schema_test.schema.yml

View source
  1. # Schema for the configuration files of the Configuration Schema Test module.
  2. config_schema_test.some_schema:
  3. type: config_object
  4. label: 'Schema test data'
  5. mapping:
  6. test_item:
  7. label: 'Test item'
  8. test_list:
  9. label: 'Test list'
  10. config_schema_test.some_schema.with_parents:
  11. label: 'Schema test data with parenting'
  12. type: config_object
  13. mapping:
  14. one_level:
  15. label: 'Parenting one level up'
  16. type: mapping
  17. mapping:
  18. target_key:
  19. label: 'Key used in parent relation'
  20. type: string
  21. test_item:
  22. type: config_schema_test.some_schema.with_parents.[%parent.target_key]
  23. two_levels:
  24. label: 'Parenting two levels up'
  25. type: mapping
  26. mapping:
  27. target_key:
  28. label: 'Key used in parent relation'
  29. type: string
  30. wrapper:
  31. label: 'Wrapper'
  32. type: mapping
  33. mapping:
  34. test_item:
  35. type: config_schema_test.some_schema.with_parents.[%parent.%parent.target_key]
  36. three_levels:
  37. label: 'Parenting three levels up'
  38. type: mapping
  39. mapping:
  40. target_key:
  41. label: 'Key used in parent relation'
  42. type: string
  43. wrapper_1:
  44. label: 'Wrapper 1'
  45. type: mapping
  46. mapping:
  47. wrapper_2:
  48. label: 'Wrapper 2'
  49. type: mapping
  50. mapping:
  51. test_item:
  52. type: config_schema_test.some_schema.with_parents.[%parent.%parent.%parent.target_key]
  53. config_schema_test.some_schema.with_parents.key_1:
  54. label: 'Test item nested one level'
  55. type: string
  56. config_schema_test.some_schema.with_parents.key_2:
  57. label: 'Test item nested two levels'
  58. type: string
  59. config_schema_test.some_schema.with_parents.key_3:
  60. label: 'Test item nested three levels'
  61. type: string
  62. config_schema_test.some_schema.some_module.*.*:
  63. type: config_object
  64. label: 'Schema multiple filesystem marker test'
  65. mapping:
  66. test_id:
  67. type: string
  68. label: 'ID'
  69. test_description:
  70. type: text
  71. label: 'Description'
  72. config_schema_test.wildcard_fallback.*:
  73. type: config_object
  74. label: 'Schema wildcard fallback test'
  75. mapping:
  76. test_id:
  77. type: string
  78. label: 'ID'
  79. test_description:
  80. type: text
  81. label: 'Description'
  82. config_schema_test.schema_data_types:
  83. type: config_object
  84. label: 'Config test schema'
  85. mapping:
  86. config_schema_test_integer:
  87. type: config_schema_test_integer
  88. config_schema_test_integer_empty_string:
  89. type: config_schema_test_integer
  90. integer:
  91. type: integer
  92. null_integer:
  93. type: integer
  94. float:
  95. type: float
  96. null_float:
  97. type: float
  98. string:
  99. type: string
  100. null_string:
  101. type: string
  102. empty_string:
  103. type: string
  104. boolean:
  105. type: boolean
  106. no_type:
  107. label: 'No label'
  108. mapping:
  109. type: mapping
  110. mapping:
  111. string:
  112. type: string
  113. sequence:
  114. type: sequence
  115. sequence:
  116. type: boolean
  117. config_schema_test_integer:
  118. type: integer
  119. label: 'Config test integer'
  120. config_schema_test.ignore:
  121. type: config_object
  122. label: 'Ignore test'
  123. mapping:
  124. label:
  125. type: label
  126. label: 'Label'
  127. irrelevant:
  128. type: ignore
  129. label: 'Irrelevant'
  130. indescribable:
  131. type: ignore
  132. label: 'Indescribable'
  133. weight:
  134. type: weight
  135. label: 'Weight'
  136. config_schema_test.plugin_types:
  137. type: config_object
  138. mapping:
  139. tests:
  140. type: sequence
  141. sequence:
  142. type: test.plugin_types.[plugin_id]
  143. test_with_parents:
  144. type: sequence
  145. sequence:
  146. type: mapping
  147. mapping:
  148. plugin_id:
  149. type: string
  150. settings:
  151. type: test_with_parents.plugin_types.[%parent.plugin_id]
  152. test.plugin_types:
  153. type: mapping
  154. mapping:
  155. plugin_id:
  156. type: string
  157. test.plugin_types.boolean:
  158. type: mapping
  159. mapping:
  160. plugin_id:
  161. type: string
  162. value:
  163. type: boolean
  164. test.plugin_types.boolean:*:
  165. type: test.plugin_types.boolean
  166. test_with_parents.plugin_types.boolean:
  167. type: mapping
  168. mapping:
  169. value:
  170. type: boolean
  171. test_with_parents.plugin_types.boolean:*:
  172. type: test_with_parents.plugin_types.boolean
  173. test.plugin_types.*:
  174. type: mapping
  175. mapping:
  176. plugin_id:
  177. type: string
  178. value:
  179. type: string
  180. test_with_parents.plugin_types.*:
  181. type: mapping
  182. mapping:
  183. value:
  184. type: string
  185. config_schema_test.hook:
  186. type: string
  187. config_test.dynamic.*.third_party.config_schema_test:
  188. type: mapping
  189. mapping:
  190. integer:
  191. type: integer
  192. string:
  193. type: string
  194. wrapping.config_schema_test.plugin_types:
  195. type: config_object
  196. mapping:
  197. tests:
  198. type: sequence
  199. sequence:
  200. type: wrapping.test.plugin_types.[plugin_id]
  201. wrapping.test.plugin_types.*:
  202. type: test.plugin_types.[plugin_id]
  203. mapping:
  204. wrapper_value:
  205. type: string
  206. test.plugin_types.wrapper:*:
  207. type: test.plugin_types
  208. mapping:
  209. internal_value:
  210. type: string
  211. wrapping.config_schema_test.double_brackets:
  212. type: config_object
  213. mapping:
  214. tests:
  215. type: sequence
  216. sequence:
  217. type: wrapping.test.double_brackets.[another_key]
  218. wrapping.test.double_brackets.*:
  219. type: test.double_brackets.[foo].[bar]
  220. mapping:
  221. wrapper_value:
  222. type: string
  223. test.double_brackets.cat.dog:
  224. type: test.double_brackets
  225. mapping:
  226. another_key:
  227. type: string
  228. foo:
  229. type: string
  230. bar:
  231. type: string
  232. test.double_brackets.turtle.horse:
  233. type: test.double_brackets
  234. mapping:
  235. another_key:
  236. type: integer
  237. foo:
  238. type: string
  239. bar:
  240. type: string
  241. test.double_brackets.*:
  242. type: mapping
  243. wrapping.config_schema_test.other_double_brackets:
  244. type: config_object
  245. mapping:
  246. tests:
  247. type: sequence
  248. sequence:
  249. type: wrapping.test.other_double_brackets.[id]
  250. wrapping.test.other_double_brackets.*:
  251. type: test.double_brackets.[id]
  252. mapping:
  253. id:
  254. type: string
  255. foo:
  256. type: string
  257. bar:
  258. type: string
  259. test.double_brackets.cat:*.*:
  260. type: test.double_brackets.breed
  261. test.double_brackets.breed:
  262. type: test.double_brackets
  263. mapping:
  264. breed:
  265. type: string
  266. config_schema_test.schema_sequence_sort:
  267. type: config_object
  268. mapping:
  269. keyed_sort:
  270. type: sequence
  271. orderby: key
  272. sequence:
  273. type: string
  274. value_sort:
  275. type: sequence
  276. orderby: value
  277. sequence:
  278. type: string
  279. no_sort:
  280. type: sequence
  281. sequence:
  282. type: string
  283. complex_sort_value:
  284. type: sequence
  285. orderby: value
  286. sequence:
  287. type: mapping
  288. mapping:
  289. foo:
  290. type: string
  291. bar:
  292. type: string
  293. complex_sort_key:
  294. type: sequence
  295. orderby: key
  296. sequence:
  297. type: mapping
  298. mapping:
  299. foo:
  300. type: string
  301. bar:
  302. type: string
  303. config_schema_test.schema_mapping_sort:
  304. type: config_object
  305. mapping:
  306. bar:
  307. type: string
  308. foo:
  309. type: string
  310. map:
  311. type: mapping
  312. mapping:
  313. sub_foo:
  314. type: string
  315. sub_bar:
  316. type: string

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