You are here

smart_date.schema.yml in Smart Date 3.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. field.widget.settings.smartdate_default:
  87. type: mapping
  88. label: 'Smart date default display format settings'
  89. mapping:
  90. modal:
  91. type: boolean
  92. label: 'Use modal'
  93. default_duration:
  94. type: integer
  95. label: 'Default duration'
  96. default_duration_increments:
  97. type: string
  98. label: 'Duration options made available to the user'
  99. field.widget.settings.smartdate_timezone:
  100. type: mapping
  101. label: 'Smart date timezone display format settings'
  102. mapping:
  103. default_tz:
  104. type: string
  105. label: 'Default timezone'
  106. custom_tz:
  107. type: string
  108. label: 'Custom timezone'
  109. smart_date.smart_date_format.*:
  110. type: config_entity
  111. label: 'Smart date format'
  112. mapping:
  113. id:
  114. type: string
  115. label: 'ID'
  116. label:
  117. type: label
  118. label: 'Label'
  119. date_format:
  120. type: string
  121. translatable: true
  122. form_element_class: \Drupal\config_translation\FormElement\DateFormat
  123. label: 'Date Format String'
  124. translation context: 'Smart date format'
  125. time_format:
  126. type: string
  127. translatable: true
  128. form_element_class: \Drupal\config_translation\FormElement\Textfield
  129. label: 'Time Format String'
  130. translation context: 'Smart date format'
  131. time_hour_format:
  132. type: string
  133. translatable: true
  134. form_element_class: \Drupal\config_translation\FormElement\Textfield
  135. label: 'Time Hour Format String'
  136. translation context: 'Smart date format'
  137. allday_label:
  138. type: string
  139. translatable: true
  140. form_element_class: \Drupal\config_translation\FormElement\Textfield
  141. label: 'All day label'
  142. translation context: 'Smart date format'
  143. separator:
  144. type: string
  145. translatable: true
  146. form_element_class: \Drupal\config_translation\FormElement\Textfield
  147. label: 'Separator'
  148. translation context: 'Smart date format'
  149. join:
  150. type: string
  151. translatable: true
  152. form_element_class: \Drupal\config_translation\FormElement\Textfield
  153. label: 'Join'
  154. translation context: 'Smart date format'
  155. ampm_reduce:
  156. type: string
  157. translatable: true
  158. form_element_class: \Drupal\smart_date\FormElement\Boolean
  159. label: 'Reduce AM/PM display'
  160. date_first:
  161. type: string
  162. translatable: true
  163. form_element_class: \Drupal\smart_date\FormElement\Boolean
  164. label: 'Date First (if unchecked, will show time first)'