You are here

simplenews.schema.yml in Simplenews 8.2

config/schema/simplenews.schema.yml

File

config/schema/simplenews.schema.yml
View source
  1. # Settings schema.
  2. simplenews.settings:
  3. type: config_object
  4. label: 'Simplenews settings'
  5. mapping:
  6. hash_expiration:
  7. type: integer
  8. label: Hash expiration
  9. newsletter:
  10. type: mapping
  11. label: Newsletter settings
  12. mapping:
  13. format:
  14. type: string
  15. label: Default format for new newsletters
  16. priority:
  17. type: integer
  18. label: Default priority for new newsletters
  19. receipt:
  20. type: boolean
  21. label: Default require receipt setting for newsletters
  22. from_address:
  23. type: string
  24. label: Default from email address
  25. from_name:
  26. type: label
  27. label: Default from name
  28. subscriber:
  29. type: mapping
  30. mapping:
  31. sync_fields:
  32. type: boolean
  33. label: Sync between account and subscriber fields
  34. subscription:
  35. type: mapping
  36. label: Subscription settings
  37. mapping:
  38. tidy_unconfirmed:
  39. type: integer
  40. label: Tidy unconfirmed subscriptions after a number of days
  41. use_combined:
  42. type: string
  43. label: Combined setting
  44. confirm_subscribe_subject:
  45. type: label
  46. label: Subscribe confirmation subject
  47. confirm_subscribe_unsubscribed:
  48. type: text
  49. label: Subscribe confirmation message
  50. confirm_subscribe_subscribed:
  51. type: text
  52. label: Already subscribed message
  53. confirm_unsubscribe_subscribed:
  54. type: text
  55. label: Unsubscribe message
  56. confirm_unsubscribe_unsubscribed:
  57. type: text
  58. label: Already Unsubscribe message
  59. confirm_combined_subject:
  60. type: label
  61. label: Combined subscribe subject
  62. confirm_combined_body:
  63. type: text
  64. label: Combined subscribe message
  65. confirm_combined_body_unchanged:
  66. type: text
  67. label: Combined subscribe unchanged message
  68. confirm_combined_line_subscribe_unsubscribed:
  69. type: label
  70. label: Combined subscribe message
  71. confirm_combined_line_subscribe_subscribed:
  72. type: label
  73. label: Combined already subscribed message
  74. confirm_combined_line_unsubscribe_subscribed:
  75. type: label
  76. label: Combined unsubscribe message
  77. confirm_combined_line_unsubscribe_unsubscribed:
  78. type: label
  79. label: Combined already unsubscribed message
  80. confirm_subscribe_page:
  81. type: string
  82. label: Confirmation subscribe redirect page
  83. confirm_unsubscribe_page:
  84. type: string
  85. label: Confirmation unsubscribe redirect page
  86. mail:
  87. type: mapping
  88. label: Mail settings
  89. mapping:
  90. use_cron:
  91. type: boolean
  92. label: Use cron
  93. throttle:
  94. type: integer
  95. label: Mails to send per cron run
  96. spool_progress_expiration:
  97. type: integer
  98. label: Spool in progress expiration
  99. spool_expire:
  100. type: integer
  101. label: Expiration of sent mails in spool
  102. debug:
  103. type: boolean
  104. label: Debug
  105. # Newsletter config entity schema.
  106. simplenews.newsletter.*:
  107. type: config_entity
  108. label: 'Newsletter'
  109. mapping:
  110. name:
  111. type: label
  112. label: 'Name'
  113. id:
  114. type: string
  115. label: 'Machine-readable name'
  116. description:
  117. type: text
  118. label: 'Description of the newsletter'
  119. format:
  120. type: string
  121. label: 'HTML or plaintext newsletter indicator'
  122. priority:
  123. type: integer
  124. label: 'Priority indicator'
  125. receipt:
  126. type: boolean
  127. label: 'TRUE if a read receipt should be requested.'
  128. from_name:
  129. type: label
  130. label: 'Name of the email author.'
  131. subject:
  132. type: label
  133. label: 'Subject of newsletter email. May contain tokens.'
  134. from_address:
  135. type: string
  136. label: 'Email author address'
  137. hyperlinks:
  138. type: boolean
  139. label: 'Indicates if hyperlinks should be kept inline or extracted.'
  140. allowed_handlers:
  141. type: sequence
  142. label: 'Restricts which recipient handlers are allowed.'
  143. sequence:
  144. type: string
  145. label: Allowed recipient handler
  146. new_account:
  147. type: string
  148. label: 'Indicates how to integrate with the register form.'
  149. opt_inout:
  150. type: string
  151. label: 'Defines the Opt-In/out options.'
  152. weight:
  153. type: integer
  154. label: 'Weight of this newsletter (used for sorting).'
  155. field.simplenews_subscription.settings:
  156. type: mapping
  157. label: 'Subscription settings'
  158. mapping:
  159. target_type:
  160. type: string
  161. label: 'Type of item to reference'
  162. field.simplenews_subscription.instance_settings:
  163. type: mapping
  164. label: 'Subscription settings'
  165. mapping:
  166. handler:
  167. type: string
  168. label: 'Reference method'
  169. handler_settings:
  170. type: entity_reference.[%parent.handler].handler_settings
  171. label: 'Reference method settings'
  172. # Monitoring schema.
  173. monitoring.settings.simplenews_pending:
  174. type: monitoring.settings_base
  175. label: 'Simplenews pending sensor settings'
  176. mapping: { }
  177. # Simplenews issue field type schema.
  178. field.storage_settings.simplenews_issue:
  179. type: field.storage_settings.entity_reference
  180. label: 'Simplenews issue settings'
  181. mapping: { }
  182. field.field_settings.simplenews_issue:
  183. type: field.field_settings.entity_reference
  184. label: 'Simplenews issue settings'
  185. field.value.simplenews_issue:
  186. type: field.value.entity_reference
  187. label: 'Default value'
  188. mapping:
  189. handler:
  190. type: string
  191. label: Handler
  192. handler_settings:
  193. type: mapping
  194. label: Handler settings
  195. status:
  196. type: integer
  197. label: Sent status
  198. sent_count:
  199. type: integer
  200. label: Sent count
  201. error_count:
  202. type: integer
  203. label: Error count
  204. subscribers:
  205. type: integer
  206. label: Subscriber count
  207. # Simplenews suscription field type schema.
  208. field.storage_settings.simplenews_subscription:
  209. type: field.storage_settings.entity_reference
  210. label: 'Simplenews subscription settings'
  211. mapping: { }
  212. field.field_settings.simplenews_subscription:
  213. type: field.field_settings.entity_reference
  214. label: 'Simplenews subscription settings'
  215. field.value.simplenews_subscription:
  216. type: field.value.entity_reference
  217. label: 'Default value'
  218. mapping: { }
  219. # Block schema
  220. block.settings.simplenews_subscription_block:
  221. type: block_settings
  222. mapping:
  223. newsletters:
  224. type: sequence
  225. label: Newsletters
  226. sequence:
  227. type: string
  228. label: Newsletter ID
  229. message:
  230. type: label
  231. label: Message
  232. unique_id:
  233. type: string
  234. label: Unique ID
  235. action.configuration.simplenews_send_action:
  236. type: action_configuration_default
  237. label: 'Send selected newsletter issue'
  238. action.configuration.simplenews_stop_action:
  239. type: action_configuration_default
  240. label: 'Stop selected newsletter issue'