You are here

office_hours.schema.yml in Office Hours 8

config/schema/office_hours.schema.yml

File

config/schema/office_hours.schema.yml
View source
  1. # Schema for the configuration files of the Office Hours module.
  2. field.storage_settings.office_hours:
  3. type: mapping
  4. label: 'Office hours settings'
  5. mapping:
  6. time_format:
  7. type: string
  8. label: 'Time notation'
  9. element_type:
  10. type: string
  11. label: 'Time element type'
  12. increment:
  13. type: integer
  14. label: 'Restrict the input to fixed fractions of an hour'
  15. required_start:
  16. type: boolean
  17. label: 'Required widget hours - from'
  18. limit_start:
  19. type: string
  20. label: 'Limit widget hours - from'
  21. required_end:
  22. type: boolean
  23. label: 'Required widget hours - until'
  24. limit_end:
  25. type: string
  26. label: 'Limit widget hours - until'
  27. comment:
  28. type: integer
  29. label: 'Allow a comment per time slot'
  30. valhrs:
  31. type: boolean
  32. label: 'Validate hours'
  33. cardinality_per_day:
  34. type: integer
  35. label: 'Cardinality per day'
  36. field.formatter.settings.office_hours:
  37. type: mapping
  38. label: 'Office hours display format settings'
  39. mapping:
  40. day_format:
  41. type: string
  42. label: 'Day notation'
  43. time_format:
  44. type: string
  45. label: 'Time notation'
  46. compress:
  47. type: boolean
  48. label: 'Compress all hours of a day into one set'
  49. grouped:
  50. type: boolean
  51. label: 'Group consecutive days with same hours into one set'
  52. show_closed:
  53. type: string
  54. label: 'Number of days to show'
  55. closed_format:
  56. type: text
  57. label: 'Empty days notation'
  58. separator:
  59. type: mapping
  60. label: 'Separators'
  61. mapping:
  62. days:
  63. type: label
  64. label: 'Separator between days'
  65. grouped_days:
  66. type: label
  67. label: 'Separator between grouped days'
  68. day_hours:
  69. type: label
  70. label: 'Separator between day and the hours'
  71. hours_hours:
  72. type: label
  73. label: 'Separator between the hours of a time slot'
  74. more_hours:
  75. type: label
  76. label: 'Separator between time slots'
  77. current_status:
  78. type: mapping
  79. label: 'Current status'
  80. mapping:
  81. position:
  82. type: string
  83. label: 'Current status position'
  84. open_text:
  85. type: label
  86. label: 'Currently open message'
  87. closed_text:
  88. type: label
  89. label: 'Currently closed message'
  90. timezone_field:
  91. type: string
  92. label: 'Timezone field'
  93. office_hours_first_day:
  94. type: string
  95. label: 'First day of week'
  96. schema:
  97. type: mapping
  98. label: 'Schema.org support'
  99. mapping:
  100. enabled:
  101. type: boolean
  102. label: 'Enable Schema.org openingHours support'
  103. field.formatter.settings.office_hours_table:
  104. type: field.formatter.settings.office_hours
  105. field.formatter.settings.office_hours_status:
  106. type: mapping
  107. label: 'Office hours current status display format settings'
  108. mapping:
  109. open_text:
  110. type: label
  111. label: 'Currently open message'
  112. closed_text:
  113. type: label
  114. label: 'Currently closed message'
  115. field.value.office_hours:
  116. type: mapping
  117. label: 'Default value'
  118. mapping:
  119. day:
  120. type: integer
  121. label: 'Day'
  122. starthours:
  123. type: integer
  124. label: 'Start hours'
  125. endhours:
  126. type: integer
  127. label: 'End hours'
  128. comment:
  129. type: text
  130. label: 'Comment'