You are here

double_field.schema.yml in Double Field 4.x

Same filename and directory in other branches
  1. 8.3 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: label
  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. # Formatters schema.
  118. field.formatter.settings.double_field_unformatted_list:
  119. type: double_field_formatter_settings
  120. field.formatter.settings.double_field_html_list:
  121. type: double_field_formatter_settings
  122. mapping:
  123. list_type:
  124. type: string
  125. label: List type
  126. field.formatter.settings.double_field_details:
  127. type: double_field_formatter_settings
  128. mapping:
  129. open:
  130. type: boolean
  131. label: Open
  132. field.formatter.settings.double_field_table:
  133. type: double_field_formatter_settings
  134. mapping:
  135. number_column:
  136. type: boolean
  137. label: Number column
  138. number_column_label:
  139. type: string
  140. label: Number column label
  141. first_column_label:
  142. type: string
  143. label: First column label
  144. second_column_label:
  145. type: string
  146. label: Second column label
  147. double_field_formatter_settings:
  148. type: mapping
  149. label: Formatter settings
  150. mapping:
  151. first:
  152. type: double_field_formatter_subfield_settings
  153. second:
  154. type: double_field_formatter_subfield_settings
  155. inline:
  156. type: boolean
  157. label: Inline
  158. double_field_formatter_subfield_settings:
  159. type: mapping
  160. label: Formatter subfield settings
  161. mapping:
  162. format_type:
  163. type: string
  164. label: Format type
  165. link:
  166. type: boolean
  167. label: Link
  168. hidden:
  169. type: boolean
  170. label: Hidden
  171. key:
  172. type: boolean
  173. label: Key
  174. decimal_separator:
  175. type: string
  176. label: Decimal marker
  177. thousand_separator:
  178. type: string
  179. label: Thousand marker
  180. scale:
  181. type: integer
  182. label: Scale
  183. # Default value schema.
  184. field.value.double_field:
  185. type: mapping
  186. label: Default value
  187. mapping:
  188. # Treat these values as strings. The actual subfield types depend on field
  189. # storage configuration.
  190. first:
  191. type: string
  192. label: First subfield
  193. second:
  194. type: string
  195. label: Second subfield