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. link_rel:
  313. type: string
  314. label: 'Link destination'
  315. constraints:
  316. Choice:
  317. choices:
  318. - canonical
  319. - edit-form
  320. requiredKey: false
  321. field.formatter.settings.language:
  322. type: field.formatter.settings.string
  323. mapping:
  324. native_language:
  325. type: boolean
  326. label: 'Display in native language'
  327. field.formatter.settings.number_decimal:
  328. type: mapping
  329. label: 'Number decimal display format settings'
  330. mapping:
  331. thousand_separator:
  332. type: string
  333. label: 'Thousand marker'
  334. decimal_separator:
  335. type: string
  336. label: 'Decimal marker'
  337. scale:
  338. type: integer
  339. label: 'Scale'
  340. prefix_suffix:
  341. type: boolean
  342. label: 'Display prefix and suffix.'
  343. field.formatter.settings.number_integer:
  344. type: mapping
  345. label: 'Number integer display format settings'
  346. mapping:
  347. thousand_separator:
  348. type: string
  349. label: 'Thousand marker'
  350. prefix_suffix:
  351. type: boolean
  352. label: 'Display prefix and suffix.'
  353. field.formatter.settings.number_unformatted:
  354. type: mapping
  355. label: 'Number unformatted display format settings'
  356. field.formatter.settings.uri_link:
  357. type: mapping
  358. label: 'URI as link display format settings'
  359. field.formatter.settings.timestamp:
  360. type: mapping
  361. label: 'Timestamp display format settings'
  362. mapping:
  363. date_format:
  364. type: string
  365. label: 'Date format'
  366. custom_date_format:
  367. type: string
  368. label: 'Custom date format'
  369. timezone:
  370. type: string
  371. label: 'Time zone'
  372. tooltip:
  373. type: mapping
  374. label: Tooltip
  375. mapping:
  376. date_format:
  377. type: string
  378. label: 'Tooltip date format'
  379. custom_date_format:
  380. type: string
  381. label: 'Tooltip custom date format'
  382. time_diff:
  383. type: mapping
  384. label: 'Time difference'
  385. mapping:
  386. enabled:
  387. type: boolean
  388. label: 'Show as time difference'
  389. future_format:
  390. type: string
  391. label: 'Future format'
  392. past_format:
  393. type: string
  394. label: 'Past format'
  395. granularity:
  396. type: integer
  397. label: 'Time units'
  398. refresh:
  399. type: integer
  400. label: 'Refresh interval in seconds'
  401. field.formatter.settings.timestamp_ago:
  402. type: mapping
  403. label: 'Timestamp ago display format settings'
  404. mapping:
  405. future_format:
  406. type: required_label
  407. label: 'Future format'
  408. past_format:
  409. type: required_label
  410. label: 'Past format'
  411. granularity:
  412. type: integer
  413. label: 'Granularity'
  414. field.formatter.settings.entity_reference_entity_view:
  415. type: mapping
  416. label: 'Entity reference rendered entity display format settings'
  417. mapping:
  418. view_mode:
  419. type: string
  420. label: 'View mode'
  421. link:
  422. type: boolean
  423. label: 'Show links'
  424. field.formatter.settings.entity_reference_entity_id:
  425. type: mapping
  426. label: 'Entity reference entity ID display format settings'
  427. field.formatter.settings.entity_reference_label:
  428. type: mapping
  429. label: 'Entity reference label display format settings'
  430. mapping:
  431. link:
  432. type: boolean
  433. label: 'Link label to the referenced entity'
  434. block.settings.field_block:*:*:*:
  435. type: block_settings
  436. mapping:
  437. formatter:
  438. type: field_formatter
  439. constraints:
  440. FullyValidatable: ~
  441. block.settings.extra_field_block:*:*:*:
  442. type: block_settings
  443. mapping:
  444. formatter:
  445. type: field_formatter
  446. # Schema for entity actions.
  447. action.configuration.entity:*:*:
  448. type: action_configuration_default
  449. label: 'Entity action'
  450. action.configuration.action_send_email_action:
  451. type: mapping
  452. label: 'Send email configuration'
  453. mapping:
  454. recipient:
  455. type: string
  456. label: 'Recipient'
  457. subject:
  458. type: label
  459. label: 'Subject'
  460. message:
  461. type: text
  462. label: 'Message'
  463. action.configuration.action_goto_action:
  464. type: mapping
  465. label: 'Redirect to URL configuration'
  466. mapping:
  467. url:
  468. type: string
  469. label: 'URL'
  470. action.configuration.action_message_action:
  471. type: mapping
  472. label: 'Display a message to the user configuration'
  473. mapping:
  474. message:
  475. type: text
  476. label: 'Message'

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