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

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