datetime_range.schema.yml

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

File

core/modules/datetime_range/config/schema/datetime_range.schema.yml

View source
  1. # Schema for the configuration files of the Datetime Range module.
  2. # Daterange field type.
  3. # This field type has no field instance settings, so no specific config schema type.
  4. # @see `type: field.field_settings.*`
  5. field.storage_settings.daterange:
  6. type: field.storage_settings.datetime
  7. label: 'Date range settings'
  8. field.value.daterange:
  9. type: mapping
  10. label: 'Default value'
  11. mapping:
  12. default_date_type:
  13. type: string
  14. label: 'Default start date type'
  15. default_date:
  16. type: string
  17. label: 'Default start date value'
  18. default_end_date_type:
  19. type: string
  20. label: 'Default end date type'
  21. default_end_date:
  22. type: string
  23. label: 'Default end date value'
  24. field.formatter.settings.daterange_default:
  25. type: field.formatter.settings.datetime_default
  26. label: 'Date range default display format settings'
  27. mapping:
  28. from_to:
  29. type: string
  30. label: 'Display'
  31. constraints:
  32. Choice:
  33. - both
  34. - start_date
  35. - end_date
  36. separator:
  37. type: label
  38. label: 'Separator'
  39. translation context: 'Date range separator'
  40. field.formatter.settings.daterange_plain:
  41. type: field.formatter.settings.datetime_plain
  42. label: 'Date range plain display format settings'
  43. mapping:
  44. from_to:
  45. type: string
  46. label: 'Display'
  47. constraints:
  48. Choice:
  49. - both
  50. - start_date
  51. - end_date
  52. separator:
  53. type: label
  54. label: 'Separator'
  55. translation context: 'Date range separator'
  56. field.formatter.settings.daterange_custom:
  57. type: field.formatter.settings.datetime_custom
  58. label: 'Date range custom display format settings'
  59. mapping:
  60. from_to:
  61. type: string
  62. label: 'Display'
  63. constraints:
  64. Choice:
  65. - both
  66. - start_date
  67. - end_date
  68. separator:
  69. type: label
  70. label: 'Separator'
  71. translation context: 'Date range separator'
  72. field.widget.settings.daterange_datelist:
  73. type: mapping
  74. label: 'Date range select list display format settings'
  75. mapping:
  76. increment:
  77. type: integer
  78. label: 'Time increments'
  79. date_order:
  80. type: string
  81. label: 'Date part order'
  82. time_type:
  83. type: string
  84. label: 'Time type'
  85. field.widget.settings.daterange_default:
  86. type: mapping
  87. label: 'Date range default display format settings'

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