You are here

smart_date.schema.yml in Smart Date 8

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. separator:
  42. type: string
  43. label: 'Smart Date Format'
  44. translation context: 'Smart date display'
  45. timezone_override:
  46. type: string
  47. label: 'Time zone override'
  48. translation context: 'Smart date display'
  49. format:
  50. type: string
  51. label: 'Format'
  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. smart_date.smart_date_format.*:
  90. type: config_entity
  91. label: 'Smart date format'
  92. mapping:
  93. id:
  94. type: string
  95. label: 'ID'
  96. label:
  97. type: label
  98. label: 'Label'
  99. date_format:
  100. type: string
  101. translatable: true
  102. form_element_class: \Drupal\config_translation\FormElement\DateFormat
  103. label: 'Date Format String'
  104. translation context: 'Smart date format'
  105. time_format:
  106. type: string
  107. translatable: true
  108. form_element_class: \Drupal\config_translation\FormElement\Textfield
  109. label: 'Time Format String'
  110. translation context: 'Smart date format'
  111. time_hour_format:
  112. type: string
  113. translatable: true
  114. form_element_class: \Drupal\config_translation\FormElement\Textfield
  115. label: 'Time Hour Format String'
  116. translation context: 'Smart date format'
  117. allday_label:
  118. type: string
  119. translatable: true
  120. form_element_class: \Drupal\config_translation\FormElement\Textfield
  121. label: 'All day label'
  122. translation context: 'Smart date format'
  123. allday_label:
  124. type: string
  125. translatable: true
  126. form_element_class: \Drupal\config_translation\FormElement\Textfield
  127. label: 'All day label'
  128. translation context: 'Smart date format'
  129. separator:
  130. type: string
  131. translatable: true
  132. form_element_class: \Drupal\config_translation\FormElement\Textfield
  133. label: 'Separator'
  134. translation context: 'Smart date format'
  135. join:
  136. type: string
  137. translatable: true
  138. form_element_class: \Drupal\config_translation\FormElement\Textfield
  139. label: 'Join'
  140. translation context: 'Smart date format'
  141. ampm_reduce:
  142. type: string
  143. translatable: true
  144. form_element_class: \Drupal\smart_date\FormElement\Boolean
  145. label: 'Reduce AM/PM display'
  146. date_first:
  147. type: string
  148. translatable: true
  149. form_element_class: \Drupal\smart_date\FormElement\Boolean
  150. label: 'Date First (if unchecked, will show time first)'