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. 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.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. # @see \Drupal\Core\Config\Schema\Sequence::getElementDefinition()
  118. sequence_bc:
  119. type: sequence
  120. sequence:
  121. - type: boolean
  122. sequence_bc_root:
  123. type: sequence
  124. sequence:
  125. - type: mapping
  126. mapping:
  127. id:
  128. type: string
  129. value:
  130. type: config_schema_test.sequence_bc_root.[%parent.id]
  131. config_schema_test.sequence_bc_root.*:
  132. type: boolean
  133. label: 'Value'
  134. config_schema_test_integer:
  135. type: integer
  136. label: 'Config test integer'
  137. config_schema_test.ignore:
  138. type: config_object
  139. label: 'Ignore test'
  140. mapping:
  141. label:
  142. type: label
  143. label: 'Label'
  144. irrelevant:
  145. type: ignore
  146. label: 'Irrelevant'
  147. indescribable:
  148. type: ignore
  149. label: 'Indescribable'
  150. weight:
  151. type: weight
  152. label: 'Weight'
  153. config_schema_test.plugin_types:
  154. type: config_object
  155. mapping:
  156. tests:
  157. type: sequence
  158. sequence:
  159. type: test.plugin_types.[plugin_id]
  160. test_with_parents:
  161. type: sequence
  162. sequence:
  163. type: mapping
  164. mapping:
  165. plugin_id:
  166. type: string
  167. settings:
  168. type: test_with_parents.plugin_types.[%parent.plugin_id]
  169. test.plugin_types:
  170. type: mapping
  171. mapping:
  172. plugin_id:
  173. type: string
  174. test.plugin_types.boolean:
  175. type: mapping
  176. mapping:
  177. plugin_id:
  178. type: string
  179. value:
  180. type: boolean
  181. test.plugin_types.boolean:*:
  182. type: test.plugin_types.boolean
  183. test_with_parents.plugin_types.boolean:
  184. type: mapping
  185. mapping:
  186. value:
  187. type: boolean
  188. test_with_parents.plugin_types.boolean:*:
  189. type: test_with_parents.plugin_types.boolean
  190. test.plugin_types.*:
  191. type: mapping
  192. mapping:
  193. plugin_id:
  194. type: string
  195. value:
  196. type: string
  197. test_with_parents.plugin_types.*:
  198. type: mapping
  199. mapping:
  200. value:
  201. type: string
  202. config_schema_test.hook:
  203. type: string
  204. config_test.dynamic.*.third_party.config_schema_test:
  205. type: mapping
  206. mapping:
  207. integer:
  208. type: integer
  209. string:
  210. type: string
  211. wrapping.config_schema_test.plugin_types:
  212. type: config_object
  213. mapping:
  214. tests:
  215. type: sequence
  216. sequence:
  217. type: wrapping.test.plugin_types.[plugin_id]
  218. wrapping.test.plugin_types.*:
  219. type: test.plugin_types.[plugin_id]
  220. mapping:
  221. wrapper_value:
  222. type: string
  223. test.plugin_types.wrapper:*:
  224. type: test.plugin_types
  225. mapping:
  226. internal_value:
  227. type: string
  228. wrapping.config_schema_test.double_brackets:
  229. type: config_object
  230. mapping:
  231. tests:
  232. type: sequence
  233. sequence:
  234. type: wrapping.test.double_brackets.[another_key]
  235. wrapping.test.double_brackets.*:
  236. type: test.double_brackets.[foo].[bar]
  237. mapping:
  238. wrapper_value:
  239. type: string
  240. test.double_brackets.cat.dog:
  241. type: test.double_brackets
  242. mapping:
  243. another_key:
  244. type: string
  245. foo:
  246. type: string
  247. bar:
  248. type: string
  249. test.double_brackets.turtle.horse:
  250. type: test.double_brackets
  251. mapping:
  252. another_key:
  253. type: integer
  254. foo:
  255. type: string
  256. bar:
  257. type: string
  258. test.double_brackets.*:
  259. type: mapping
  260. wrapping.config_schema_test.other_double_brackets:
  261. type: config_object
  262. mapping:
  263. tests:
  264. type: sequence
  265. sequence:
  266. type: wrapping.test.other_double_brackets.[id]
  267. wrapping.test.other_double_brackets.*:
  268. type: test.double_brackets.[id]
  269. mapping:
  270. id:
  271. type: string
  272. foo:
  273. type: string
  274. bar:
  275. type: string
  276. test.double_brackets.cat:*.*:
  277. type: test.double_brackets.breed
  278. test.double_brackets.breed:
  279. type: test.double_brackets
  280. mapping:
  281. breed:
  282. type: string
  283. config_schema_test.schema_sequence_sort:
  284. type: config_object
  285. mapping:
  286. keyed_sort:
  287. type: sequence
  288. orderby: key
  289. sequence:
  290. type: string
  291. value_sort:
  292. type: sequence
  293. orderby: value
  294. sequence:
  295. type: string
  296. no_sort:
  297. type: sequence
  298. sequence:
  299. type: string
  300. complex_sort_value:
  301. type: sequence
  302. orderby: value
  303. sequence:
  304. type: mapping
  305. mapping:
  306. foo:
  307. type: string
  308. bar:
  309. type: string
  310. complex_sort_key:
  311. type: sequence
  312. orderby: key
  313. sequence:
  314. type: mapping
  315. mapping:
  316. foo:
  317. type: string
  318. bar:
  319. type: string
  320. config_schema_test.schema_mapping_sort:
  321. type: config_object
  322. mapping:
  323. bar:
  324. type: string
  325. foo:
  326. type: string
  327. map:
  328. type: mapping
  329. mapping:
  330. sub_foo:
  331. type: string
  332. sub_bar:
  333. type: string

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