You are here

simplenews.schema.yml in Simplenews 3.x

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