Same filename and directory in other branches
  1. 8.9.x core/modules/filter/config/schema/filter.schema.yml
  2. 9 core/modules/filter/config/schema/filter.schema.yml
core/modules/filter/config/schema/filter.schema.yml

File

core/modules/filter/config/schema/filter.schema.yml
View source
  1. # Schema for the configuration files of the Filter module.
  2. filter.settings:
  3. type: config_object
  4. label: 'Filter settings'
  5. constraints:
  6. FullyValidatable: ~
  7. mapping:
  8. # @todo Simple config cannot have dependencies on any other config. Remove this in https://www.drupal.org/project/drupal/issues/1932544.
  9. fallback_format:
  10. type: machine_name
  11. label: 'Fallback text format'
  12. # Filter format machine names can be up to 255 characters.
  13. # @see \Drupal\filter\FilterFormatFormBase::form()
  14. constraints:
  15. Length:
  16. max: 255
  17. always_show_fallback_choice:
  18. type: boolean
  19. label: 'Always show fallback choice'
  20. filter.format.*:
  21. type: config_entity
  22. label: 'Text formats'
  23. mapping:
  24. name:
  25. type: required_label
  26. label: 'Name'
  27. format:
  28. type: machine_name
  29. label: 'Machine name'
  30. # Filter format machine names can be up to 255 characters.
  31. # @see \Drupal\filter\FilterFormatFormBase::form()
  32. constraints:
  33. Length:
  34. max: 255
  35. weight:
  36. type: weight
  37. label: 'Weight'
  38. roles:
  39. type: sequence
  40. label: 'Roles'
  41. sequence:
  42. type: string
  43. label: 'Role'
  44. filters:
  45. type: sequence
  46. orderby: key
  47. label: 'Enabled filters'
  48. sequence:
  49. type: filter
  50. filter_settings.*:
  51. type: mapping
  52. label: 'Filter settings'
  53. filter_settings.filter_html:
  54. type: mapping
  55. label: 'Filter HTML'
  56. mapping:
  57. allowed_html:
  58. type: string
  59. label: 'Allowed HTML'
  60. filter_html_help:
  61. type: boolean
  62. label: 'HTML help'
  63. filter_html_nofollow:
  64. type: boolean
  65. label: 'HTML nofollow'
  66. filter_settings.filter_url:
  67. type: mapping
  68. label: 'Filter URL'
  69. mapping:
  70. filter_url_length:
  71. type: integer
  72. label: 'URL length'