You are here

config_test.schema.yml in Drupal 9

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. float:
  72. type: float
  73. label: 'Float'
  74. float_as_integer:
  75. type: float
  76. label: 'Float'
  77. exp:
  78. type: float
  79. label: 'Exponential'
  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. config_test.system:
  106. type: config_object
  107. label: 'Configuration system'
  108. mapping:
  109. foo:
  110. type: string
  111. label: 'Foo'
  112. baz:
  113. type: string
  114. label: 'Baz'
  115. '404':
  116. type: string
  117. label: '404'
  118. config_test.new:
  119. type: config_object
  120. label: 'Configuration test'
  121. mapping:
  122. key:
  123. type: string
  124. label: 'Test setting'
  125. new_key:
  126. type: string
  127. label: 'Test setting'
  128. uuid:
  129. type: uuid
  130. config_test.old:
  131. type: config_test.new
  132. config_test.foo:
  133. type: config_object
  134. label: 'Configuration test'
  135. mapping:
  136. value:
  137. type: mapping
  138. label: 'Value'
  139. mapping:
  140. key:
  141. type: string
  142. label: 'Key'
  143. label:
  144. type: label
  145. label: 'Label'
  146. config_test.bar:
  147. type: config_test.foo
  148. system.action.*.third_party.config_test:
  149. type: mapping
  150. label: 'Third party setting for action entity'
  151. mapping:
  152. integer:
  153. type: integer
  154. label: 'Integer'
  155. config_test.validation:
  156. type: config_object
  157. label: 'Configuration type'
  158. constraints:
  159. Callback:
  160. callback: [\Drupal\config_test\ConfigValidation, validateMapping]
  161. mapping:
  162. llama:
  163. type: string
  164. constraints:
  165. Callback:
  166. callback: [\Drupal\config_test\ConfigValidation, validateLlama]
  167. cat:
  168. type: mapping
  169. mapping:
  170. type:
  171. type: string
  172. constraints:
  173. Callback:
  174. callback: [\Drupal\config_test\ConfigValidation, validateCats]
  175. count:
  176. type: integer
  177. constraints:
  178. Callback:
  179. callback: [\Drupal\config_test\ConfigValidation, validateCatCount]
  180. giraffe:
  181. type: sequence
  182. constraints:
  183. Callback:
  184. callback: [\Drupal\config_test\ConfigValidation, validateSequence]
  185. sequence:
  186. type: string
  187. constraints:
  188. Callback:
  189. callback: [\Drupal\config_test\ConfigValidation, validateGiraffes]
  190. uuid:
  191. type: uuid