You are here

smart_date.schema.yml in Smart Date 8.2

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