core.entity.schema.yml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. # Schema for Configuration files of the entity module.
  2. core.entity_view_mode.*.*:
  3. type: config_entity
  4. label: 'Entity view mode settings'
  5. mapping:
  6. id:
  7. type: string
  8. label: 'ID'
  9. label:
  10. type: label
  11. label: 'The human-readable name of the view mode'
  12. targetEntityType:
  13. type: string
  14. label: 'Target entity type'
  15. cache:
  16. type: boolean
  17. label: 'Cached'
  18. core.entity_form_mode.*.*:
  19. type: config_entity
  20. label: 'Entity form mode settings'
  21. mapping:
  22. id:
  23. type: string
  24. label: 'ID'
  25. label:
  26. type: label
  27. label: 'Label'
  28. targetEntityType:
  29. type: string
  30. label: 'Target entity type'
  31. cache:
  32. type: boolean
  33. label: 'Cache'
  34. # Overview configuration information for view mode or form mode displays.
  35. core.entity_view_display.*.*.*:
  36. type: config_entity
  37. label: 'Entity display'
  38. mapping:
  39. id:
  40. type: string
  41. label: 'ID'
  42. targetEntityType:
  43. type: string
  44. label: 'Target entity type'
  45. bundle:
  46. type: string
  47. label: 'Bundle'
  48. mode:
  49. type: string
  50. label: 'View or form mode machine name'
  51. content:
  52. type: sequence
  53. label: 'Field formatters'
  54. sequence:
  55. type: mapping
  56. label: 'Field formatter'
  57. mapping:
  58. type:
  59. type: string
  60. label: 'Format type machine name'
  61. weight:
  62. type: integer
  63. label: 'Weight'
  64. region:
  65. type: string
  66. label: 'Region'
  67. label:
  68. type: string
  69. label: 'Label setting machine name'
  70. settings:
  71. type: field.formatter.settings.[%parent.type]
  72. label: 'Settings'
  73. third_party_settings:
  74. type: sequence
  75. label: 'Third party settings'
  76. sequence:
  77. type: field.formatter.third_party.[%key]
  78. hidden:
  79. type: sequence
  80. label: 'Field display setting'
  81. sequence:
  82. type: boolean
  83. label: 'Value'
  84. # Overview configuration information for form mode displays.
  85. core.entity_form_display.*.*.*:
  86. type: config_entity
  87. label: 'Entity form display'
  88. mapping:
  89. id:
  90. type: string
  91. label: 'ID'
  92. targetEntityType:
  93. type: string
  94. label: 'Target entity type'
  95. bundle:
  96. type: string
  97. label: 'Bundle'
  98. mode:
  99. type: string
  100. label: 'View or form mode machine name'
  101. status:
  102. type: boolean
  103. label: 'Enabled'
  104. content:
  105. type: sequence
  106. label: 'Field widgets'
  107. sequence:
  108. type: mapping
  109. label: 'Field widget'
  110. mapping:
  111. type:
  112. type: string
  113. label: 'Widget type machine name'
  114. weight:
  115. type: integer
  116. label: 'Weight'
  117. region:
  118. type: string
  119. label: 'Region'
  120. settings:
  121. type: field.widget.settings.[%parent.type]
  122. label: 'Settings'
  123. third_party_settings:
  124. type: sequence
  125. label: 'Third party settings'
  126. sequence:
  127. type: field.widget.third_party.[%key]
  128. hidden:
  129. type: sequence
  130. label: 'Hidden'
  131. sequence:
  132. type: boolean
  133. label: 'Component'
  134. # Default schema for entity display field with undefined type.
  135. field.formatter.settings.*:
  136. type: mapping
  137. # Default schema for entity form display field with undefined type.
  138. field.widget.settings.*:
  139. type: mapping
  140. field.widget.settings.string_textfield:
  141. type: mapping
  142. label: 'Text field display format settings'
  143. mapping:
  144. size:
  145. type: integer
  146. label: 'Size of textfield'
  147. placeholder:
  148. type: label
  149. label: 'Placeholder'
  150. field.widget.settings.string_textarea:
  151. type: mapping
  152. label: 'Textarea display format settings'
  153. mapping:
  154. rows:
  155. type: integer
  156. label: 'Rows'
  157. placeholder:
  158. type: label
  159. label: 'Placeholder'
  160. field.widget.settings.uri:
  161. type: mapping
  162. label: 'URI field'
  163. mapping:
  164. size:
  165. type: integer
  166. label: 'Size of URI field'
  167. placeholder:
  168. type: label
  169. label: 'Placeholder'
  170. field.widget.settings.email_default:
  171. type: mapping
  172. label: 'Email field display format settings'
  173. mapping:
  174. placeholder:
  175. type: label
  176. label: 'Placeholder'
  177. size:
  178. type: integer
  179. label: 'Size of email field'
  180. field.widget.settings.datetime_timestamp:
  181. type: mapping
  182. label: 'Datetime timestamp display format settings'
  183. field.widget.settings.boolean_checkbox:
  184. type: mapping
  185. label: 'Boolean checkbox display format settings'
  186. mapping:
  187. display_label:
  188. type: boolean
  189. label: 'Display label'
  190. field.widget.settings.hidden:
  191. type: mapping
  192. label: '- Hidden - format settings'
  193. field.widget.settings.number:
  194. type: mapping
  195. label: 'Number default display format settings'
  196. mapping:
  197. placeholder:
  198. type: label
  199. label: 'Placeholder'
  200. field.widget.settings.checkbox:
  201. type: mapping
  202. label: 'Single on/off checkbox format settings'
  203. mapping:
  204. display_label:
  205. type: boolean
  206. label: 'Use field label instead of the "On value" as label'
  207. field.widget.settings.entity_reference_autocomplete_tags:
  208. type: mapping
  209. label: 'Entity reference autocomplete (Tags style) display format settings'
  210. mapping:
  211. match_operator:
  212. type: string
  213. label: 'Autocomplete matching'
  214. size:
  215. type: integer
  216. label: 'Size of textfield'
  217. placeholder:
  218. type: label
  219. label: 'Placeholder'
  220. field.widget.settings.entity_reference_autocomplete:
  221. type: mapping
  222. label: 'Entity reference autocomplete display format settings'
  223. mapping:
  224. match_operator:
  225. type: string
  226. label: 'Autocomplete matching'
  227. size:
  228. type: integer
  229. label: 'Size of textfield'
  230. placeholder:
  231. type: label
  232. label: 'Placeholder'
  233. field.formatter.settings.boolean:
  234. type: mapping
  235. mapping:
  236. format:
  237. type: string
  238. label: 'Output format'
  239. format_custom_false:
  240. type: label
  241. label: 'Custom output for FALSE'
  242. format_custom_true:
  243. type: label
  244. label: 'Custom output for TRUE'
  245. field.formatter.settings.string:
  246. type: mapping
  247. mapping:
  248. link_to_entity:
  249. type: boolean
  250. label: 'Link to the entity'
  251. field.formatter.settings.language:
  252. type: field.formatter.settings.string
  253. mapping:
  254. native_language:
  255. type: boolean
  256. label: 'Display in native language'
  257. field.formatter.settings.number_decimal:
  258. type: mapping
  259. label: 'Number decimal display format settings'
  260. mapping:
  261. thousand_separator:
  262. type: string
  263. label: 'Thousand marker'
  264. decimal_separator:
  265. type: string
  266. label: 'Decimal marker'
  267. scale:
  268. type: integer
  269. label: 'Scale'
  270. prefix_suffix:
  271. type: boolean
  272. label: 'Display prefix and suffix.'
  273. field.formatter.settings.number_integer:
  274. type: mapping
  275. label: 'Number integer display format settings'
  276. mapping:
  277. thousand_separator:
  278. type: string
  279. label: 'Thousand marker'
  280. prefix_suffix:
  281. type: boolean
  282. label: 'Display prefix and suffix.'
  283. field.formatter.settings.number_unformatted:
  284. type: mapping
  285. label: 'Number unformatted display format settings'
  286. field.formatter.settings.uri_link:
  287. type: mapping
  288. label: 'URI as link display format settings'
  289. field.formatter.settings.timestamp:
  290. type: mapping
  291. label: 'Timestamp display format settings'
  292. mapping:
  293. date_format:
  294. type: string
  295. label: 'Date format'
  296. custom_date_format:
  297. type: string
  298. label: 'Custom date format'
  299. timezone:
  300. type: string
  301. label: 'Time zone'
  302. field.formatter.settings.timestamp_ago:
  303. type: mapping
  304. label: 'Timestamp ago display format settings'
  305. mapping:
  306. future_format:
  307. type: string
  308. label: 'Future format'
  309. past_format:
  310. type: string
  311. label: 'Past format'
  312. granularity:
  313. type: integer
  314. label: 'Granularity'
  315. field.formatter.settings.entity_reference_entity_view:
  316. type: mapping
  317. label: 'Entity reference rendered entity display format settings'
  318. mapping:
  319. view_mode:
  320. type: string
  321. label: 'View mode'
  322. link:
  323. type: boolean
  324. label: 'Show links'
  325. field.formatter.settings.entity_reference_entity_id:
  326. type: mapping
  327. label: 'Entity reference entity ID display format settings'
  328. field.formatter.settings.entity_reference_label:
  329. type: mapping
  330. label: 'Entity reference label display format settings'
  331. mapping:
  332. link:
  333. type: boolean
  334. label: 'Link label to the referenced entity'