core.entity.schema.yml

Same filename and directory in other branches
  1. 9 core/config/schema/core.entity.schema.yml
  2. 8.9.x core/config/schema/core.entity.schema.yml
  3. 10 core/config/schema/core.entity.schema.yml
core/config/schema/core.entity.schema.yml

File

core/config/schema/core.entity.schema.yml

View source
  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: required_label
  11. label: 'The human-readable name of the view mode'
  12. description:
  13. type: text
  14. label: 'Description'
  15. targetEntityType:
  16. type: string
  17. label: 'Target entity type'
  18. cache:
  19. type: boolean
  20. label: 'Cached'
  21. core.entity_form_mode.*.*:
  22. type: config_entity
  23. label: 'Entity form mode settings'
  24. constraints:
  25. FullyValidatable: ~
  26. mapping:
  27. id:
  28. type: string
  29. label: 'ID'
  30. # Form mode IDs can only contain lowercase letters, numbers, and underscores
  31. # prefixed by entity type name this form mode is used for and a dot.
  32. # @see \Drupal\field_ui\Form\EntityDisplayModeFormBase::form()
  33. constraints:
  34. Regex:
  35. pattern: '/^[a-z0-9_]+\.[a-z0-9_]+$/'
  36. message: "The ID %value is not valid."
  37. label:
  38. type: required_label
  39. label: 'Label'
  40. description:
  41. type: text
  42. label: 'Description'
  43. nullable: true
  44. constraints:
  45. NotBlank:
  46. allowNull: true
  47. targetEntityType:
  48. type: string
  49. label: 'Target entity type'
  50. constraints:
  51. PluginExists:
  52. manager: entity_type.manager
  53. interface: Drupal\Core\Entity\ContentEntityInterface
  54. cache:
  55. type: boolean
  56. label: 'Cache'
  57. # Overview configuration information for view mode or form mode displays.
  58. core.entity_view_display.*.*.*:
  59. type: config_entity
  60. label: 'Entity display'
  61. mapping:
  62. id:
  63. type: string
  64. label: 'ID'
  65. targetEntityType:
  66. type: string
  67. label: 'Target entity type'
  68. bundle:
  69. type: string
  70. label: 'Bundle'
  71. constraints:
  72. EntityBundleExists: '%parent.targetEntityType'
  73. mode:
  74. type: string
  75. label: 'View or form mode machine name'
  76. content:
  77. type: sequence
  78. label: 'Field formatters'
  79. sequence:
  80. type: field_formatter.entity_view_display
  81. hidden:
  82. type: sequence
  83. label: 'Field display setting'
  84. sequence:
  85. type: boolean
  86. label: 'Value'
  87. field_formatter:
  88. type: mapping
  89. label: 'Field formatter'
  90. mapping:
  91. type:
  92. type: string
  93. label: 'Format type machine name'
  94. constraints:
  95. PluginExists:
  96. manager: plugin.manager.field.formatter
  97. interface: 'Drupal\Core\Field\FormatterInterface'
  98. label:
  99. type: string
  100. label: 'Label setting machine name'
  101. settings:
  102. type: field.formatter.settings.[%parent.type]
  103. label: 'Settings'
  104. third_party_settings:
  105. # Third party settings are always optional: they're an optional extension
  106. # point.
  107. requiredKey: false
  108. type: sequence
  109. label: 'Third party settings'
  110. sequence:
  111. type: field.formatter.third_party.[%key]
  112. field_formatter.entity_view_display:
  113. type: field_formatter
  114. mapping:
  115. weight:
  116. type: weight
  117. label: 'Weight'
  118. region:
  119. type: string
  120. label: 'Region'
  121. # Overview configuration information for form mode displays.
  122. core.entity_form_display.*.*.*:
  123. type: config_entity
  124. label: 'Entity form display'
  125. mapping:
  126. id:
  127. type: string
  128. label: 'ID'
  129. targetEntityType:
  130. type: string
  131. label: 'Target entity type'
  132. bundle:
  133. type: string
  134. label: 'Bundle'
  135. constraints:
  136. EntityBundleExists: '%parent.targetEntityType'
  137. mode:
  138. type: string
  139. label: 'View or form mode machine name'
  140. status:
  141. type: boolean
  142. label: 'Enabled'
  143. content:
  144. type: sequence
  145. label: 'Field widgets'
  146. sequence:
  147. type: mapping
  148. label: 'Field widget'
  149. mapping:
  150. type:
  151. type: string
  152. label: 'Widget type machine name'
  153. constraints:
  154. PluginExists:
  155. manager: plugin.manager.field.widget
  156. interface: '\Drupal\Core\Field\WidgetInterface'
  157. weight:
  158. type: weight
  159. label: 'Weight'
  160. region:
  161. type: string
  162. label: 'Region'
  163. settings:
  164. type: field.widget.settings.[%parent.type]
  165. label: 'Settings'
  166. third_party_settings:
  167. # Third party settings are always optional: they're an optional extension
  168. # point.
  169. requiredKey: false
  170. type: sequence
  171. label: 'Third party settings'
  172. sequence:
  173. type: field.widget.third_party.[%key]
  174. hidden:
  175. type: sequence
  176. label: 'Hidden'
  177. sequence:
  178. type: boolean
  179. label: 'Component'
  180. # Default schema for entity display field with undefined type.
  181. field.formatter.settings.*:
  182. type: mapping
  183. # Default schema for entity form display field with undefined type.
  184. field.widget.settings.*:
  185. type: mapping
  186. field.widget.settings.string_textfield:
  187. type: mapping
  188. label: 'Text field display format settings'
  189. mapping:
  190. size:
  191. type: integer
  192. label: 'Size of textfield'
  193. placeholder:
  194. type: label
  195. label: 'Placeholder'
  196. field.widget.settings.string_textarea:
  197. type: mapping
  198. label: 'Textarea display format settings'
  199. mapping:
  200. rows:
  201. type: integer
  202. label: 'Rows'
  203. placeholder:
  204. type: label
  205. label: 'Placeholder'
  206. field.widget.settings.uri:
  207. type: mapping
  208. label: 'URI field'
  209. mapping:
  210. size:
  211. type: integer
  212. label: 'Size of URI field'
  213. placeholder:
  214. type: label
  215. label: 'Placeholder'
  216. field.widget.settings.email_default:
  217. type: mapping
  218. label: 'Email field display format settings'
  219. mapping:
  220. placeholder:
  221. type: label
  222. label: 'Placeholder'
  223. size:
  224. type: integer
  225. label: 'Size of email field'
  226. field.widget.settings.datetime_timestamp:
  227. type: mapping
  228. label: 'Datetime timestamp display format settings'
  229. field.widget.settings.boolean_checkbox:
  230. type: mapping
  231. label: 'Boolean checkbox display format settings'
  232. mapping:
  233. display_label:
  234. type: boolean
  235. label: 'Display label'
  236. field.widget.settings.hidden:
  237. type: mapping
  238. label: '- Hidden - format settings'
  239. field.widget.settings.number:
  240. type: mapping
  241. label: 'Number default display format settings'
  242. mapping:
  243. placeholder:
  244. type: label
  245. label: 'Placeholder'
  246. field.widget.settings.checkbox:
  247. type: mapping
  248. label: 'Single on/off checkbox format settings'
  249. mapping:
  250. display_label:
  251. type: boolean
  252. label: 'Use field label instead of the "On value" as label'
  253. field.widget.settings.language_select:
  254. type: mapping
  255. label: 'Language format settings'
  256. mapping:
  257. include_locked:
  258. type: boolean
  259. label: 'Include locked languages'
  260. field.widget.settings.entity_reference_autocomplete_tags:
  261. type: mapping
  262. label: 'Entity reference autocomplete (Tags style) display format settings'
  263. mapping:
  264. match_operator:
  265. type: string
  266. label: 'Autocomplete matching'
  267. match_limit:
  268. type: integer
  269. label: 'Maximum number of autocomplete suggestions.'
  270. size:
  271. type: integer
  272. label: 'Size of textfield'
  273. placeholder:
  274. type: label
  275. label: 'Placeholder'
  276. field.widget.settings.entity_reference_autocomplete:
  277. type: mapping
  278. label: 'Entity reference autocomplete display format settings'
  279. mapping:
  280. match_operator:
  281. type: string
  282. label: 'Autocomplete matching'
  283. match_limit:
  284. type: integer
  285. label: 'Maximum number of autocomplete suggestions.'
  286. size:
  287. type: integer
  288. label: 'Size of textfield'
  289. placeholder:
  290. type: label
  291. label: 'Placeholder'
  292. field.formatter.settings.boolean:
  293. type: mapping
  294. mapping:
  295. format:
  296. type: string
  297. label: 'Output format'
  298. format_custom_false:
  299. type: label
  300. label: 'Custom output for FALSE'
  301. format_custom_true:
  302. type: label
  303. label: 'Custom output for TRUE'
  304. field.formatter.settings.string:
  305. type: mapping
  306. mapping:
  307. link_to_entity:
  308. type: boolean
  309. label: 'Link to the entity'
  310. field.formatter.settings.language:
  311. type: field.formatter.settings.string
  312. mapping:
  313. native_language:
  314. type: boolean
  315. label: 'Display in native language'
  316. field.formatter.settings.number_decimal:
  317. type: mapping
  318. label: 'Number decimal display format settings'
  319. mapping:
  320. thousand_separator:
  321. type: string
  322. label: 'Thousand marker'
  323. decimal_separator:
  324. type: string
  325. label: 'Decimal marker'
  326. scale:
  327. type: integer
  328. label: 'Scale'
  329. prefix_suffix:
  330. type: boolean
  331. label: 'Display prefix and suffix.'
  332. field.formatter.settings.number_integer:
  333. type: mapping
  334. label: 'Number integer display format settings'
  335. mapping:
  336. thousand_separator:
  337. type: string
  338. label: 'Thousand marker'
  339. prefix_suffix:
  340. type: boolean
  341. label: 'Display prefix and suffix.'
  342. field.formatter.settings.number_unformatted:
  343. type: mapping
  344. label: 'Number unformatted display format settings'
  345. field.formatter.settings.uri_link:
  346. type: mapping
  347. label: 'URI as link display format settings'
  348. field.formatter.settings.timestamp:
  349. type: mapping
  350. label: 'Timestamp display format settings'
  351. mapping:
  352. date_format:
  353. type: string
  354. label: 'Date format'
  355. custom_date_format:
  356. type: string
  357. label: 'Custom date format'
  358. timezone:
  359. type: string
  360. label: 'Time zone'
  361. tooltip:
  362. type: mapping
  363. label: Tooltip
  364. mapping:
  365. date_format:
  366. type: string
  367. label: 'Tooltip date format'
  368. custom_date_format:
  369. type: string
  370. label: 'Tooltip custom date format'
  371. time_diff:
  372. type: mapping
  373. label: 'Time difference'
  374. mapping:
  375. enabled:
  376. type: boolean
  377. label: 'Show as time difference'
  378. future_format:
  379. type: string
  380. label: 'Future format'
  381. past_format:
  382. type: string
  383. label: 'Past format'
  384. granularity:
  385. type: integer
  386. label: 'Time units'
  387. refresh:
  388. type: integer
  389. label: 'Refresh interval in seconds'
  390. field.formatter.settings.timestamp_ago:
  391. type: mapping
  392. label: 'Timestamp ago display format settings'
  393. mapping:
  394. future_format:
  395. type: required_label
  396. label: 'Future format'
  397. past_format:
  398. type: required_label
  399. label: 'Past format'
  400. granularity:
  401. type: integer
  402. label: 'Granularity'
  403. field.formatter.settings.entity_reference_entity_view:
  404. type: mapping
  405. label: 'Entity reference rendered entity display format settings'
  406. mapping:
  407. view_mode:
  408. type: string
  409. label: 'View mode'
  410. link:
  411. type: boolean
  412. label: 'Show links'
  413. field.formatter.settings.entity_reference_entity_id:
  414. type: mapping
  415. label: 'Entity reference entity ID display format settings'
  416. field.formatter.settings.entity_reference_label:
  417. type: mapping
  418. label: 'Entity reference label display format settings'
  419. mapping:
  420. link:
  421. type: boolean
  422. label: 'Link label to the referenced entity'
  423. block.settings.field_block:*:*:*:
  424. type: block_settings
  425. mapping:
  426. formatter:
  427. type: field_formatter
  428. block.settings.extra_field_block:*:*:*:
  429. type: block_settings
  430. mapping:
  431. formatter:
  432. type: field_formatter
  433. # Schema for entity actions.
  434. action.configuration.entity:*:*:
  435. type: action_configuration_default
  436. label: 'Entity action'
  437. action.configuration.action_send_email_action:
  438. type: mapping
  439. label: 'Send email configuration'
  440. mapping:
  441. recipient:
  442. type: string
  443. label: 'Recipient'
  444. subject:
  445. type: label
  446. label: 'Subject'
  447. message:
  448. type: text
  449. label: 'Message'
  450. action.configuration.action_goto_action:
  451. type: mapping
  452. label: 'Redirect to URL configuration'
  453. mapping:
  454. url:
  455. type: string
  456. label: 'URL'
  457. action.configuration.action_message_action:
  458. type: mapping
  459. label: 'Display a message to the user configuration'
  460. mapping:
  461. message:
  462. type: text
  463. label: 'Message'

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