You are here

double_field.schema.yml in Double Field 8.3

Same filename and directory in other branches
  1. 4.x config/schema/double_field.schema.yml
config/schema/double_field.schema.yml

File

config/schema/double_field.schema.yml
View source
  1. # Storage schema.
  2. field.storage_settings.double_field:
  3. type: mapping
  4. label: Storage subfield settings
  5. mapping:
  6. storage:
  7. type: mapping
  8. label: Double Field storage settings
  9. mapping:
  10. first:
  11. type: double_field_storage_subfield_settings
  12. second:
  13. type: double_field_storage_subfield_settings
  14. double_field_storage_subfield_settings:
  15. type: mapping
  16. label: Storage subfield settings
  17. mapping:
  18. type:
  19. type: string
  20. label: Type
  21. maxlength:
  22. type: integer
  23. label: Max length
  24. precision:
  25. type: integer
  26. label: Precision
  27. scale:
  28. type: integer
  29. label: Scale
  30. datetime_type:
  31. type: string
  32. label: Date type
  33. # Instance schema.
  34. field.field_settings.double_field:
  35. type: mapping
  36. label: Double Field settings
  37. mapping:
  38. first:
  39. type: double_field_subfield_settings
  40. second:
  41. type: double_field_subfield_settings
  42. double_field_subfield_settings:
  43. type: mapping
  44. label: Subfield settings
  45. mapping:
  46. label:
  47. type: label
  48. label: Label
  49. list:
  50. type: boolean
  51. label: Limit allowed values
  52. allowed_values:
  53. type: sequence
  54. label: Allowed values
  55. sequence:
  56. type: mapping
  57. mapping:
  58. label:
  59. type: string
  60. label: Label
  61. value:
  62. # This actually can be some other scalar type.
  63. type: string
  64. label: Value
  65. max:
  66. type: integer
  67. label: Maximal value
  68. min:
  69. type: integer
  70. label: Minimal value
  71. required:
  72. type: boolean
  73. label: Required
  74. on_label:
  75. type: string
  76. label: On label
  77. off_label:
  78. type: string
  79. label: Off label
  80. # Widget schema.
  81. field.widget.settings.double_field:
  82. type: mapping
  83. label: Double Field widget settings
  84. mapping:
  85. first:
  86. type: double_field_widget_subfield_settings
  87. second:
  88. type: double_field_widget_subfield_settings
  89. inline:
  90. type: boolean
  91. label: Display as inline element
  92. double_field_widget_subfield_settings:
  93. type: mapping
  94. label: Widget subfield settings
  95. mapping:
  96. type:
  97. type: string
  98. label: Type
  99. label_display:
  100. type: string
  101. label: Label display
  102. size:
  103. type: integer
  104. label: Size
  105. placeholder:
  106. type: string
  107. label: Placeholder
  108. label:
  109. type: string
  110. label: Label
  111. cols:
  112. type: integer
  113. label: Cols
  114. rows:
  115. type: integer
  116. label: Rows
  117. prefix:
  118. type: string
  119. label: Prefix
  120. suffix:
  121. type: string
  122. label: Suffix
  123. # Formatters schema.
  124. field.formatter.settings.double_field_unformatted_list:
  125. type: double_field_formatter_settings
  126. field.formatter.settings.double_field_accordion:
  127. type: double_field_formatter_settings
  128. field.formatter.settings.double_field_tabs:
  129. type: double_field_formatter_settings
  130. field.formatter.settings.double_field_html_list:
  131. type: double_field_formatter_settings
  132. mapping:
  133. list_type:
  134. type: string
  135. label: List type
  136. field.formatter.settings.double_field_details:
  137. type: double_field_formatter_settings
  138. mapping:
  139. open:
  140. type: boolean
  141. label: Open
  142. field.formatter.settings.double_field_table:
  143. type: double_field_formatter_settings
  144. mapping:
  145. number_column:
  146. type: boolean
  147. label: Number column
  148. number_column_label:
  149. type: string
  150. label: Number column label
  151. first_column_label:
  152. type: string
  153. label: First column label
  154. second_column_label:
  155. type: string
  156. label: Second column label
  157. double_field_formatter_settings:
  158. type: mapping
  159. label: Formatter settings
  160. mapping:
  161. first:
  162. type: double_field_formatter_subfield_settings
  163. second:
  164. type: double_field_formatter_subfield_settings
  165. inline:
  166. type: boolean
  167. label: Inline
  168. double_field_formatter_subfield_settings:
  169. type: mapping
  170. label: Formatter subfield settings
  171. mapping:
  172. format_type:
  173. type: string
  174. label: Format type
  175. link:
  176. type: boolean
  177. label: Link
  178. hidden:
  179. type: boolean
  180. label: Hidden
  181. prefix:
  182. type: string
  183. label: Prefix
  184. suffix:
  185. type: string
  186. label: Suffix
  187. decimal_separator:
  188. type: string
  189. label: Decimal marker
  190. thousand_separator:
  191. type: string
  192. label: Thousand marker
  193. scale:
  194. type: integer
  195. label: Scale
  196. # Default value schema.
  197. field.value.double_field:
  198. type: mapping
  199. label: Default value
  200. mapping:
  201. # Treat these values as strings. The actual subfield types depend on field
  202. # storage configuration.
  203. first:
  204. type: string
  205. label: First subfield
  206. second:
  207. type: string
  208. label: Second subfield