You are here

smart_date.schema.yml in Smart Date 3.1.x

config/schema/smart_date.schema.yml

File

config/schema/smart_date.schema.yml
View source
  1. # Schema for the configuration files of the Smart Date module.
  2. # smartdate field type.
  3. field.storage_settings.smartdate:
  4. type: field.storage_settings.datetime
  5. label: 'Smart date settings'
  6. field.field_settings.smartdate:
  7. type: field.field_settings.datetime
  8. label: 'Smart date settings'
  9. field.value.smartdate:
  10. type: mapping
  11. label: 'Default value'
  12. mapping:
  13. default_time_type:
  14. type: string
  15. label: 'Default start time type'
  16. default_time:
  17. type: string
  18. label: 'Default start time value'
  19. default_end_time_type:
  20. type: string
  21. label: 'Default end time type'
  22. default_end_time:
  23. type: string
  24. label: 'Default end time value'
  25. default_duration:
  26. type: integer
  27. label: 'Default duration'
  28. default_duration_increments:
  29. type: string
  30. label: 'Duration options made available to the user'
  31. default_date_type:
  32. type: string
  33. label: 'Default start date type'
  34. default_date:
  35. type: string
  36. label: 'Default start date value'
  37. field.formatter.settings.smartdate_default:
  38. type: field.formatter.settings.datetime_default
  39. label: 'Smart date default display format settings'
  40. mapping:
  41. timezone_override:
  42. type: string
  43. label: 'Time zone override'
  44. translation context: 'Smart date display'
  45. format:
  46. type: string
  47. label: 'Format'
  48. translation context: 'Smart date display'
  49. force_chronological:
  50. type: boolean
  51. label: 'Force chronological'
  52. translation context: 'Smart date display'
  53. format_type:
  54. type: string
  55. label: 'Format Type'
  56. translation context: 'Smart date display'
  57. add_classes:
  58. type: integer
  59. label: 'Add Classes'
  60. translation context: 'Add classed spans around the time and date values.'
  61. field.formatter.settings.smartdate_plain:
  62. type: field.formatter.settings.datetime_plain
  63. label: 'Smart date plain display format settings'
  64. mapping:
  65. separator:
  66. type: label
  67. label: 'Separator'
  68. translation context: 'Smart date display'
  69. field.formatter.settings.smartdate_custom:
  70. type: field.formatter.settings.datetime_custom
  71. label: 'Smart date custom display format settings'
  72. mapping:
  73. separator:
  74. type: label
  75. label: 'Separator'
  76. translation context: 'Smart date display'
  77. field.widget.settings.smartdate_datelist:
  78. type: mapping
  79. label: 'Smart date select list display format settings'
  80. mapping:
  81. increment:
  82. type: integer
  83. label: 'Time increments'
  84. date_order:
  85. type: string
  86. label: 'Date part order'
  87. time_type:
  88. type: string
  89. label: 'Time type'
  90. show_extra:
  91. type: boolean
  92. label: 'Show extra'
  93. field.widget.settings.smartdate_default:
  94. type: mapping
  95. label: 'Smart date default display format settings'
  96. mapping:
  97. default_duration:
  98. type: integer
  99. label: 'Default duration'
  100. default_duration_increments:
  101. type: string
  102. label: 'Duration options made available to the user'
  103. show_extra:
  104. type: boolean
  105. label: 'Show extra'
  106. field.widget.settings.smartdate_timezone:
  107. type: mapping
  108. label: 'Smart date timezone display format settings'
  109. mapping:
  110. default_tz:
  111. type: string
  112. label: 'Default timezone'
  113. custom_tz:
  114. type: string
  115. label: 'Custom timezone'
  116. allowed_timezones:
  117. type: sequence
  118. label: 'Allowed timeones'
  119. sequence:
  120. type: string
  121. label: 'Timezone'
  122. default_duration:
  123. type: integer
  124. label: 'Default duration'
  125. default_duration_increments:
  126. type: string
  127. label: 'Duration options made available to the user'
  128. show_extra:
  129. type: boolean
  130. label: 'Show extra'
  131. smart_date.smart_date_format.*:
  132. type: config_entity
  133. label: 'Smart date format'
  134. mapping:
  135. id:
  136. type: string
  137. label: 'ID'
  138. label:
  139. type: label
  140. label: 'Label'
  141. date_format:
  142. type: string
  143. translatable: true
  144. form_element_class: \Drupal\config_translation\FormElement\DateFormat
  145. label: 'Date Format String'
  146. translation context: 'Smart date format'
  147. time_format:
  148. type: string
  149. translatable: true
  150. form_element_class: \Drupal\config_translation\FormElement\Textfield
  151. label: 'Time Format String'
  152. translation context: 'Smart date format'
  153. time_hour_format:
  154. type: string
  155. translatable: true
  156. form_element_class: \Drupal\config_translation\FormElement\Textfield
  157. label: 'Time Hour Format String'
  158. translation context: 'Smart date format'
  159. allday_label:
  160. type: string
  161. translatable: true
  162. form_element_class: \Drupal\config_translation\FormElement\Textfield
  163. label: 'All day label'
  164. translation context: 'Smart date format'
  165. separator:
  166. type: string
  167. translatable: true
  168. form_element_class: \Drupal\config_translation\FormElement\Textfield
  169. label: 'Separator'
  170. translation context: 'Smart date format'
  171. join:
  172. type: string
  173. translatable: true
  174. form_element_class: \Drupal\config_translation\FormElement\Textfield
  175. label: 'Join'
  176. translation context: 'Smart date format'
  177. ampm_reduce:
  178. type: string
  179. translatable: true
  180. form_element_class: \Drupal\smart_date\FormElement\Boolean
  181. label: 'Reduce AM/PM display'
  182. date_first:
  183. type: string
  184. translatable: true
  185. form_element_class: \Drupal\smart_date\FormElement\Boolean
  186. label: 'Date First (if unchecked, will show time first)'
  187. site_time_toggle:
  188. type: string
  189. translatable: true
  190. form_element_class: \Drupal\smart_date\FormElement\Boolean
  191. label: 'Site Time display'