You are here

autosave_form.schema.yml in Autosave Form 8

config/schema/autosave_form.schema.yml

File

config/schema/autosave_form.schema.yml
View source
  1. # Schema for the configuration files of the Autosave Form module.
  2. autosave_form.settings:
  3. type: config_object
  4. label: 'Autosave Form Settings'
  5. mapping:
  6. interval:
  7. type: integer
  8. label: 'The interval used to trigger autosave.'
  9. only_on_form_change:
  10. type: boolean
  11. label: 'Run autosave submission within the specified interval only if there was a form change.'
  12. active_on:
  13. type: mapping
  14. label: 'Active on'
  15. mapping:
  16. content_entity_forms:
  17. type: boolean
  18. label: 'Content entity forms'
  19. config_entity_forms:
  20. type: boolean
  21. label: 'Config entity forms'
  22. notification:
  23. type: mapping
  24. label: 'Notification'
  25. mapping:
  26. active:
  27. type: boolean
  28. label: 'Show notification each time autosave is triggered'
  29. message:
  30. type: text
  31. label: 'Notification message'
  32. delay:
  33. type: integer
  34. label: 'Notification duration'
  35. allowed_content_entity_types:
  36. type: sequence
  37. label: 'Allowed content entity types'
  38. sequence:
  39. type: mapping
  40. label: 'Entity type'
  41. mapping:
  42. bundles:
  43. type: sequence
  44. label: 'Allowed bundles of the entity type'
  45. sequence:
  46. type: string
  47. label: 'Bundle'
  48. autosave_form.messages:
  49. type: config_object
  50. label: 'Autosave Form Messages'
  51. mapping:
  52. entity_saved_in_background_alert_message:
  53. type: string
  54. label: 'The alert message to show to the user if the entity has been saved meanwhile in the background.'