You are here

simplenews.schema.yml in Simplenews 8

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