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. 10 core/modules/config/tests/config_schema_test/config/schema/config_schema_test.schema.yml
  3. 11.x 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.someschema:
  3. type: config_object
  4. label: 'Schema test data'
  5. mapping:
  6. testitem:
  7. label: 'Test item'
  8. testlist:
  9. label: 'Test list'
  10. config_schema_test.someschema.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. testitem:
  22. type: config_schema_test.someschema.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. testitem:
  35. type: config_schema_test.someschema.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. testitem:
  52. type: config_schema_test.someschema.with_parents.[%parent.%parent.%parent.target_key]
  53. config_schema_test.someschema.with_parents.key_1:
  54. label: 'Test item nested one level'
  55. type: string
  56. config_schema_test.someschema.with_parents.key_2:
  57. label: 'Test item nested two levels'
  58. type: string
  59. config_schema_test.someschema.with_parents.key_3:
  60. label: 'Test item nested three levels'
  61. type: string
  62. config_schema_test.someschema.somemodule.*.*:
  63. type: config_object
  64. label: 'Schema multiple filesystem marker test'
  65. mapping:
  66. testid:
  67. type: string
  68. label: 'ID'
  69. testdescription:
  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. testid:
  77. type: string
  78. label: 'ID'
  79. testdescription:
  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. sequence_bc:
  118. type: sequence
  119. sequence:
  120. - type: boolean
  121. config_schema_test_integer:
  122. type: integer
  123. label: 'Config test integer'
  124. config_schema_test.ignore:
  125. type: config_object
  126. label: 'Ignore test'
  127. mapping:
  128. label:
  129. type: label
  130. label: 'Label'
  131. irrelevant:
  132. type: ignore
  133. label: 'Irrelevant'
  134. indescribable:
  135. type: ignore
  136. label: 'Indescribable'
  137. weight:
  138. type: integer
  139. label: 'Weight'
  140. config_schema_test.plugin_types:
  141. type: config_object
  142. mapping:
  143. tests:
  144. type: sequence
  145. sequence:
  146. type: test.plugin_types.[plugin_id]
  147. test_with_parents:
  148. type: sequence
  149. sequence:
  150. type: mapping
  151. mapping:
  152. plugin_id:
  153. type: string
  154. settings:
  155. type: test_with_parents.plugin_types.[%parent.plugin_id]
  156. test.plugin_types:
  157. type: mapping
  158. mapping:
  159. plugin_id:
  160. type: string
  161. test.plugin_types.boolean:
  162. type: mapping
  163. mapping:
  164. plugin_id:
  165. type: string
  166. value:
  167. type: boolean
  168. test.plugin_types.boolean:*:
  169. type: test.plugin_types.boolean
  170. test_with_parents.plugin_types.boolean:
  171. type: mapping
  172. mapping:
  173. value:
  174. type: boolean
  175. test_with_parents.plugin_types.boolean:*:
  176. type: test_with_parents.plugin_types.boolean
  177. test.plugin_types.*:
  178. type: mapping
  179. mapping:
  180. plugin_id:
  181. type: string
  182. value:
  183. type: string
  184. test_with_parents.plugin_types.*:
  185. type: mapping
  186. mapping:
  187. value:
  188. type: string
  189. config_schema_test.hook:
  190. type: string
  191. config_test.dynamic.*.third_party.config_schema_test:
  192. type: mapping
  193. mapping:
  194. integer:
  195. type: integer
  196. string:
  197. type: string
  198. wrapping.config_schema_test.plugin_types:
  199. type: config_object
  200. mapping:
  201. tests:
  202. type: sequence
  203. sequence:
  204. - type: wrapping.test.plugin_types.[plugin_id]
  205. wrapping.test.plugin_types.*:
  206. type: test.plugin_types.[plugin_id]
  207. mapping:
  208. wrapper_value:
  209. type: string
  210. test.plugin_types.wrapper:*:
  211. type: test.plugin_types
  212. mapping:
  213. internal_value:
  214. type: string
  215. wrapping.config_schema_test.double_brackets:
  216. type: config_object
  217. mapping:
  218. tests:
  219. type: sequence
  220. sequence:
  221. - type: wrapping.test.double_brackets.[another_key]
  222. wrapping.test.double_brackets.*:
  223. type: test.double_brackets.[foo].[bar]
  224. mapping:
  225. wrapper_value:
  226. type: string
  227. test.double_brackets.cat.dog:
  228. type: test.double_brackets
  229. mapping:
  230. another_key:
  231. type: string
  232. foo:
  233. type: string
  234. bar:
  235. type: string
  236. test.double_brackets.turtle.horse:
  237. type: test.double_brackets
  238. mapping:
  239. another_key:
  240. type: integer
  241. foo:
  242. type: string
  243. bar:
  244. type: string
  245. test.double_brackets.*:
  246. type: mapping
  247. wrapping.config_schema_test.other_double_brackets:
  248. type: config_object
  249. mapping:
  250. tests:
  251. type: sequence
  252. sequence:
  253. - type: wrapping.test.other_double_brackets.[id]
  254. wrapping.test.other_double_brackets.*:
  255. type: test.double_brackets.[id]
  256. mapping:
  257. id:
  258. type: string
  259. foo:
  260. type: string
  261. bar:
  262. type: string
  263. test.double_brackets.cat:*.*:
  264. type: test.double_brackets.breed
  265. test.double_brackets.breed:
  266. type: test.double_brackets
  267. mapping:
  268. breed:
  269. type: string
  270. config_schema_test.schema_sequence_sort:
  271. type: config_object
  272. mapping:
  273. keyed_sort:
  274. type: sequence
  275. orderby: key
  276. sequence:
  277. - type: string
  278. value_sort:
  279. type: sequence
  280. orderby: value
  281. sequence:
  282. - type: string
  283. no_sort:
  284. type: sequence
  285. sequence:
  286. - type: string
  287. complex_sort_value:
  288. type: sequence
  289. orderby: value
  290. sequence:
  291. - type: mapping
  292. mapping:
  293. foo:
  294. type: string
  295. bar:
  296. type: string
  297. complex_sort_key:
  298. type: sequence
  299. orderby: key
  300. sequence:
  301. - type: mapping
  302. mapping:
  303. foo:
  304. type: string
  305. bar:
  306. type: string

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