config_test.schema.yml

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

File

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

View source
  1. # Schema for the configuration files of the Configuration Test module.
  2. config_test_dynamic:
  3. type: config_entity
  4. mapping:
  5. id:
  6. type: string
  7. label: 'ID'
  8. label:
  9. type: label
  10. label: 'Label'
  11. weight:
  12. type: integer
  13. label: 'Weight'
  14. style:
  15. type: string
  16. label: 'style'
  17. size:
  18. type: string
  19. label: 'Size'
  20. size_value:
  21. type: string
  22. label: 'Size value'
  23. protected_property:
  24. type: string
  25. label: 'Protected property'
  26. config_test.dynamic.*:
  27. type: config_test_dynamic
  28. label: 'Config test dynamic settings'
  29. config_test.dynamic.*.*:
  30. type: config_test_dynamic
  31. label: 'Config test dynamic settings'
  32. config_test.dynamic.*.third_party.node:
  33. type: mapping
  34. mapping:
  35. foo:
  36. type: string
  37. config_test.query.*:
  38. type: config_entity
  39. mapping:
  40. id:
  41. type: string
  42. label: 'ID'
  43. label:
  44. type: label
  45. label: 'Label'
  46. array:
  47. type: sequence
  48. label: 'Array level 1'
  49. sequence:
  50. type: sequence
  51. label: 'Array level 2'
  52. sequence:
  53. type: integer
  54. label: 'Value'
  55. number:
  56. type: integer
  57. label: 'number'
  58. config_test.types:
  59. type: config_object
  60. label: 'Configuration type'
  61. mapping:
  62. array:
  63. type: sequence
  64. label: 'Array'
  65. sequence:
  66. type: string
  67. label: 'Item'
  68. boolean:
  69. type: boolean
  70. label: 'Boolean'
  71. exp:
  72. type: float
  73. label: 'Exponential'
  74. float:
  75. type: float
  76. label: 'Float'
  77. float_as_integer:
  78. type: float
  79. label: 'Float'
  80. hex:
  81. type: integer
  82. label: 'Hexadecimal'
  83. int:
  84. type: integer
  85. label: 'Integer'
  86. octal:
  87. type: integer
  88. label: 'Octal'
  89. string:
  90. type: string
  91. label: 'String'
  92. string_int:
  93. type: string
  94. label: 'String integer'
  95. config_test.no_status.default:
  96. type: config_object
  97. label: 'Configuration no status default'
  98. mapping:
  99. id:
  100. type: string
  101. label: 'ID'
  102. label:
  103. type: label
  104. label: 'Label'
  105. uuid:
  106. type: string
  107. label: 'UUID'
  108. config_test.system:
  109. type: config_object
  110. label: 'Configuration system'
  111. mapping:
  112. foo:
  113. type: string
  114. label: 'Foo'
  115. baz:
  116. type: string
  117. label: 'Baz'
  118. '404':
  119. type: string
  120. label: '404'
  121. config_test.new:
  122. type: config_object
  123. label: 'Configuration test'
  124. mapping:
  125. key:
  126. type: string
  127. label: 'Test setting'
  128. new_key:
  129. type: string
  130. label: 'Test setting'
  131. uuid:
  132. type: uuid
  133. config_test.old:
  134. type: config_test.new
  135. config_test.foo:
  136. type: config_object
  137. label: 'Configuration test'
  138. mapping:
  139. value:
  140. type: mapping
  141. label: 'Value'
  142. mapping:
  143. key:
  144. type: string
  145. label: 'Key'
  146. label:
  147. type: label
  148. label: 'Label'
  149. config_test.bar:
  150. type: config_test.foo
  151. system.action.*.third_party.config_test:
  152. type: mapping
  153. label: 'Third party setting for action entity'
  154. mapping:
  155. integer:
  156. type: integer
  157. label: 'Integer'
  158. config_test.validation:
  159. type: config_object
  160. label: 'Configuration type'
  161. constraints:
  162. Callback:
  163. callback: [\Drupal\config_test\ConfigValidation, validateMapping]
  164. mapping:
  165. llama:
  166. type: string
  167. constraints:
  168. Callback:
  169. callback: [\Drupal\config_test\ConfigValidation, validateLlama]
  170. cat:
  171. type: mapping
  172. mapping:
  173. type:
  174. type: string
  175. constraints:
  176. Callback:
  177. callback: [\Drupal\config_test\ConfigValidation, validateCats]
  178. count:
  179. type: integer
  180. constraints:
  181. Callback:
  182. callback: [\Drupal\config_test\ConfigValidation, validateCatCount]
  183. giraffe:
  184. type: sequence
  185. constraints:
  186. Callback:
  187. callback: [\Drupal\config_test\ConfigValidation, validateSequence]
  188. sequence:
  189. type: string
  190. constraints:
  191. Callback:
  192. callback: [\Drupal\config_test\ConfigValidation, validateGiraffes]
  193. uuid:
  194. type: uuid

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