contact.schema.yml

Same filename in other branches
  1. 9 core/modules/contact/config/schema/contact.schema.yml
  2. 8.9.x core/modules/contact/config/schema/contact.schema.yml
  3. 11.x core/modules/contact/config/schema/contact.schema.yml
core/modules/contact/config/schema/contact.schema.yml

File

core/modules/contact/config/schema/contact.schema.yml

View source
  1. # Schema for the configuration files of the Contact module.
  2. contact.form.*:
  3. type: config_entity
  4. label: 'Contact form'
  5. mapping:
  6. id:
  7. type: machine_name
  8. label: 'ID'
  9. constraints:
  10. Length:
  11. # Contact form IDs are specifically limited to 32 characters.
  12. # @see \Drupal\contact\ContactFormEditForm::form()
  13. max: 32
  14. label:
  15. type: required_label
  16. label: 'Label'
  17. recipients:
  18. type: sequence
  19. label: 'Recipients'
  20. sequence:
  21. type: email
  22. label: 'Email address'
  23. reply:
  24. type: text
  25. label: 'Auto-reply'
  26. weight:
  27. type: weight
  28. label: 'Weight'
  29. message:
  30. type: text
  31. label: 'Message displayed to user on submission'
  32. redirect:
  33. type: path
  34. label: 'Redirect path on submission'
  35. contact.settings:
  36. type: config_object
  37. label: 'Contact settings'
  38. constraints:
  39. FullyValidatable: ~
  40. mapping:
  41. default_form:
  42. type: string
  43. label: 'Default form identifier'
  44. # It is possible to not configure a default form.
  45. # @see \Drupal\contact\ContactFormEditForm::save()
  46. nullable: true
  47. constraints:
  48. ConfigExists:
  49. prefix: contact.form.
  50. flood:
  51. # @see \Drupal\Core\Flood\FloodInterface::isAllowed()
  52. type: mapping
  53. label: 'Flood control'
  54. mapping:
  55. limit:
  56. type: integer
  57. label: 'Limit (messages per interval)'
  58. constraints:
  59. Range:
  60. min: 1
  61. interval:
  62. type: integer
  63. label: 'Interval (seconds)'
  64. constraints:
  65. Range:
  66. min: 1
  67. user_default_enabled:
  68. type: boolean
  69. label: 'Personal contact form enabled by default'

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