You are here

smart_date.schema.yml in Smart Date 3.0.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. field.formatter.settings.smartdate_plain:
  58. type: field.formatter.settings.datetime_plain
  59. label: 'Smart date plain display format settings'
  60. mapping:
  61. separator:
  62. type: label
  63. label: 'Separator'
  64. translation context: 'Smart date display'
  65. field.formatter.settings.smartdate_custom:
  66. type: field.formatter.settings.datetime_custom
  67. label: 'Smart date custom display format settings'
  68. mapping:
  69. separator:
  70. type: label
  71. label: 'Separator'
  72. translation context: 'Smart date display'
  73. field.widget.settings.smartdate_datelist:
  74. type: mapping
  75. label: 'Smart date select list display format settings'
  76. mapping:
  77. increment:
  78. type: integer
  79. label: 'Time increments'
  80. date_order:
  81. type: string
  82. label: 'Date part order'
  83. time_type:
  84. type: string
  85. label: 'Time type'
  86. show_extra:
  87. type: boolean
  88. label: 'Show extra'
  89. field.widget.settings.smartdate_default:
  90. type: mapping
  91. label: 'Smart date default display format settings'
  92. mapping:
  93. modal:
  94. type: boolean
  95. label: 'Use modal'
  96. default_duration:
  97. type: integer
  98. label: 'Default duration'
  99. default_duration_increments:
  100. type: string
  101. label: 'Duration options made available to the user'
  102. show_extra:
  103. type: boolean
  104. label: 'Show extra'
  105. field.widget.settings.smartdate_timezone:
  106. type: mapping
  107. label: 'Smart date timezone display format settings'
  108. mapping:
  109. default_tz:
  110. type: string
  111. label: 'Default timezone'
  112. custom_tz:
  113. type: string
  114. label: 'Custom timezone'
  115. allowed_timezones:
  116. type: sequence
  117. label: 'Allowed timeones'
  118. sequence:
  119. type: string
  120. label: 'Timezone'
  121. modal:
  122. type: boolean
  123. label: 'Use modal'
  124. default_duration:
  125. type: integer
  126. label: 'Default duration'
  127. default_duration_increments:
  128. type: string
  129. label: 'Duration options made available to the user'
  130. show_extra:
  131. type: boolean
  132. label: 'Show extra'
  133. smart_date.smart_date_format.*:
  134. type: config_entity
  135. label: 'Smart date format'
  136. mapping:
  137. id:
  138. type: string
  139. label: 'ID'
  140. label:
  141. type: label
  142. label: 'Label'
  143. date_format:
  144. type: string
  145. translatable: true
  146. form_element_class: \Drupal\config_translation\FormElement\DateFormat
  147. label: 'Date Format String'
  148. translation context: 'Smart date format'
  149. time_format:
  150. type: string
  151. translatable: true
  152. form_element_class: \Drupal\config_translation\FormElement\Textfield
  153. label: 'Time Format String'
  154. translation context: 'Smart date format'
  155. time_hour_format:
  156. type: string
  157. translatable: true
  158. form_element_class: \Drupal\config_translation\FormElement\Textfield
  159. label: 'Time Hour Format String'
  160. translation context: 'Smart date format'
  161. allday_label:
  162. type: string
  163. translatable: true
  164. form_element_class: \Drupal\config_translation\FormElement\Textfield
  165. label: 'All day label'
  166. translation context: 'Smart date format'
  167. separator:
  168. type: string
  169. translatable: true
  170. form_element_class: \Drupal\config_translation\FormElement\Textfield
  171. label: 'Separator'
  172. translation context: 'Smart date format'
  173. join:
  174. type: string
  175. translatable: true
  176. form_element_class: \Drupal\config_translation\FormElement\Textfield
  177. label: 'Join'
  178. translation context: 'Smart date format'
  179. ampm_reduce:
  180. type: string
  181. translatable: true
  182. form_element_class: \Drupal\smart_date\FormElement\Boolean
  183. label: 'Reduce AM/PM display'
  184. date_first:
  185. type: string
  186. translatable: true
  187. form_element_class: \Drupal\smart_date\FormElement\Boolean
  188. label: 'Date First (if unchecked, will show time first)'
  189. site_time_toggle:
  190. type: string
  191. translatable: true
  192. form_element_class: \Drupal\smart_date\FormElement\Boolean
  193. label: 'Site Time display'