core.entity.schema.yml

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

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