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

File

core/modules/tour/config/schema/tour.schema.yml
View source
  1. # Schema for the configuration files of the Tour module.
  2. tour.tour.*:
  3. type: config_entity
  4. label: 'Tour settings'
  5. mapping:
  6. id:
  7. type: machine_name
  8. label: 'ID'
  9. constraints:
  10. # Tour IDs also allow dashes.
  11. Regex:
  12. pattern: '/^[a-z0-9_-]+$/'
  13. message: "The %value machine name is not valid."
  14. label:
  15. type: required_label
  16. label: 'Label'
  17. module:
  18. type: string
  19. label: 'Providing module'
  20. routes:
  21. type: sequence
  22. label: 'Route settings'
  23. sequence:
  24. type: route
  25. label: 'Route'
  26. tips:
  27. type: sequence
  28. label: 'Tips'
  29. sequence:
  30. type: tour.tip.[plugin]
  31. label: 'Tour tip'
  32. tour.tip:
  33. type: mapping
  34. label: 'Tour tip'
  35. mapping:
  36. id:
  37. type: string
  38. label: 'ID'
  39. plugin:
  40. type: string
  41. label: 'Plugin'
  42. constraints:
  43. PluginExists:
  44. manager: plugin.manager.tour.tip
  45. interface: '\Drupal\tour\TipPluginInterface'
  46. label:
  47. type: required_label
  48. label: 'Label'
  49. weight:
  50. type: weight
  51. label: 'Weight'
  52. position:
  53. type: string
  54. label: 'Position'
  55. selector:
  56. type: string
  57. label: 'Selector'
  58. tour.tip.text:
  59. type: tour.tip
  60. label: 'Textual tour tip'
  61. mapping:
  62. body:
  63. type: text
  64. label: 'Body'