Browse Source

simplenews installed, configured. Simplenews migrated (missing status) missing subscribers

Bachir Soussi Chiadmi 5 years ago
parent
commit
5feff79c34
55 changed files with 3232 additions and 51 deletions
  1. 4 0
      composer.json
  2. 876 39
      composer.lock
  3. 96 0
      config/sync/core.entity_form_display.node.simplenews_issue.default.yml
  4. 25 0
      config/sync/core.entity_form_display.simplenews_subscriber.simplenews_subscriber.account.yml
  5. 30 0
      config/sync/core.entity_form_display.simplenews_subscriber.simplenews_subscriber.default.yml
  6. 12 0
      config/sync/core.entity_form_mode.simplenews_subscriber.account.yml
  7. 12 0
      config/sync/core.entity_form_mode.simplenews_subscriber.block.yml
  8. 12 0
      config/sync/core.entity_form_mode.simplenews_subscriber.page.yml
  9. 33 0
      config/sync/core.entity_view_display.node.simplenews_issue.default.yml
  10. 30 0
      config/sync/core.entity_view_display.node.simplenews_issue.email_html.yml
  11. 30 0
      config/sync/core.entity_view_display.node.simplenews_issue.email_plain.yml
  12. 30 0
      config/sync/core.entity_view_display.node.simplenews_issue.email_textalt.yml
  13. 31 0
      config/sync/core.entity_view_display.node.simplenews_issue.teaser.yml
  14. 15 0
      config/sync/core.entity_view_mode.node.email_html.yml
  15. 15 0
      config/sync/core.entity_view_mode.node.email_plain.yml
  16. 15 0
      config/sync/core.entity_view_mode.node.email_textalt.yml
  17. 3 0
      config/sync/core.extension.yml
  18. 24 0
      config/sync/field.field.node.simplenews_issue.body.yml
  19. 33 0
      config/sync/field.field.node.simplenews_issue.simplenews_issue.yml
  20. 25 0
      config/sync/field.field.simplenews_subscriber.simplenews_subscriber.subscriptions.yml
  21. 22 0
      config/sync/field.storage.node.simplenews_issue.yml
  22. 21 0
      config/sync/field.storage.simplenews_subscriber.subscriptions.yml
  23. 24 0
      config/sync/language/fr/views.view.simplenews_newsletters.yml
  24. 33 0
      config/sync/language/fr/views.view.simplenews_subscribers.yml
  25. 13 0
      config/sync/mailgun.settings.yml
  26. 1 1
      config/sync/migrate_plus.migration.d7_allpublicfiles.yml
  27. 1 1
      config/sync/migrate_plus.migration.d7_node_materiau.yml
  28. 1 1
      config/sync/migrate_plus.migration.d7_node_materiau_i18n.yml
  29. 79 0
      config/sync/migrate_plus.migration.d7_simplenews_nodes.yml
  30. 1 1
      config/sync/migrate_plus.migration.d7_taxonomy_term_company.yml
  31. 1 1
      config/sync/migrate_plus.migration.d7_taxonomy_term_showroom.yml
  32. 1 1
      config/sync/migrate_plus.migration.d7_taxonomy_term_tags.yml
  33. 1 1
      config/sync/migrate_plus.migration.d7_taxonomy_term_tags_i18n.yml
  34. 1 1
      config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus.yml
  35. 1 1
      config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n.yml
  36. 1 1
      config/sync/migrate_plus.migration.d7_user_profile.yml
  37. 1 1
      config/sync/migrate_plus.migration.d7_users.yml
  38. 1 1
      config/sync/migrate_plus.migration_group.d7_materio.yml
  39. 14 0
      config/sync/mimemail.settings.yml
  40. 13 0
      config/sync/node.type.simplenews_issue.yml
  41. 17 0
      config/sync/simplenews.newsletter.companies.yml
  42. 17 0
      config/sync/simplenews.newsletter.materio_newsletter.yml
  43. 17 0
      config/sync/simplenews.newsletter.test.yml
  44. 17 0
      config/sync/simplenews.newsletter.ze_daily_materio_.yml
  45. 34 0
      config/sync/simplenews.settings.yml
  46. 13 0
      config/sync/system.action.simplenews_send_action.yml
  47. 13 0
      config/sync/system.action.simplenews_stop_action.yml
  48. 1 0
      config/sync/system.mail.yml
  49. 32 0
      config/sync/ultimate_cron.job.simplenews_cron.yml
  50. 1 0
      config/sync/user.role.anonymous.yml
  51. 1 0
      config/sync/user.role.authenticated.yml
  52. 623 0
      config/sync/views.view.simplenews_newsletters.yml
  53. 618 0
      config/sync/views.view.simplenews_subscribers.yml
  54. 85 0
      web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_simplenews_nodes.yml
  55. 161 0
      web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7SimplenewsNodes.php

+ 4 - 0
composer.json

@@ -26,9 +26,13 @@
         "drupal/console": "^1.0.2",
         "drupal/core": "^8.6.0",
         "drupal/entity_clone": "^1.0",
+        "drupal/mailgun": "1.x-dev",
+        "drupal/mailsystem": "^4.1",
         "drupal/migrate_plus": "4.x-dev",
         "drupal/migrate_tools": "4.x-dev",
+        "drupal/mimemail": "1.x-dev",
         "drupal/select_translation": "1.x-dev",
+        "drupal/simplenews": "1.x-dev",
         "drupal/telephone_formatter": "^1.0@beta",
         "drupal/telephone_validation": "^2.1",
         "drupal/views_conditional": "1.x-dev",

File diff suppressed because it is too large
+ 876 - 39
composer.lock


+ 96 - 0
config/sync/core.entity_form_display.node.simplenews_issue.default.yml

@@ -0,0 +1,96 @@
+uuid: 24e1d1da-42d9-439a-8897-6003b48d8c4e
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.field.node.simplenews_issue.body
+    - field.field.node.simplenews_issue.simplenews_issue
+    - node.type.simplenews_issue
+  module:
+    - path
+    - text
+_core:
+  default_config_hash: WqeUSrMFjkfE6sD1OFP-91spC9kIXK8gtJ_qXf4bKDg
+id: node.simplenews_issue.default
+targetEntityType: node
+bundle: simplenews_issue
+mode: default
+content:
+  body:
+    type: text_textarea_with_summary
+    weight: 2
+    settings:
+      rows: 9
+      summary_rows: 3
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+  created:
+    type: datetime_timestamp
+    weight: 10
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+  langcode:
+    type: language_select
+    weight: 2
+    region: content
+    settings:
+      include_locked: true
+    third_party_settings: {  }
+  path:
+    type: path
+    weight: 30
+    region: content
+    settings: {  }
+    third_party_settings: {  }
+  promote:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 15
+    third_party_settings: {  }
+    region: content
+  simplenews_issue:
+    type: options_select
+    weight: 3
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+  status:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 120
+    region: content
+    third_party_settings: {  }
+  sticky:
+    type: boolean_checkbox
+    settings:
+      display_label: true
+    weight: 16
+    third_party_settings: {  }
+    region: content
+  title:
+    type: string_textfield
+    weight: 0
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+  uid:
+    type: entity_reference_autocomplete
+    weight: 5
+    settings:
+      match_operator: CONTAINS
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+  url_redirects:
+    weight: 50
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+hidden: {  }

+ 25 - 0
config/sync/core.entity_form_display.simplenews_subscriber.simplenews_subscriber.account.yml

@@ -0,0 +1,25 @@
+uuid: 69018b12-11c1-4af9-8c54-8d53d7ca678a
+langcode: und
+status: true
+dependencies:
+  config:
+    - core.entity_form_mode.simplenews_subscriber.account
+    - field.field.simplenews_subscriber.simplenews_subscriber.subscriptions
+  module:
+    - simplenews
+_core:
+  default_config_hash: wsSwexy6Zc4ZKCF3dNzcg9vwvZeAsOKhe-WpASvCLIs
+id: simplenews_subscriber.simplenews_subscriber.account
+targetEntityType: simplenews_subscriber
+bundle: simplenews_subscriber
+mode: account
+content:
+  subscriptions:
+    type: simplenews_subscription_select
+    weight: 0
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+hidden:
+  mail: true
+  uid: true

+ 30 - 0
config/sync/core.entity_form_display.simplenews_subscriber.simplenews_subscriber.default.yml

@@ -0,0 +1,30 @@
+uuid: 68b2586e-6b2e-4d18-94e4-3a7844c5f12b
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.field.simplenews_subscriber.simplenews_subscriber.subscriptions
+  module:
+    - simplenews
+_core:
+  default_config_hash: pxNnkOchZljVErGC7uuVjmPpbp0Wy2CiK-pllIxNLK0
+id: simplenews_subscriber.simplenews_subscriber.default
+targetEntityType: simplenews_subscriber
+bundle: simplenews_subscriber
+mode: default
+content:
+  mail:
+    type: email_default
+    weight: 5
+    settings:
+      placeholder: ''
+    third_party_settings: {  }
+    region: content
+  subscriptions:
+    type: simplenews_subscription_select
+    weight: 0
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+hidden:
+  uid: true

+ 12 - 0
config/sync/core.entity_form_mode.simplenews_subscriber.account.yml

@@ -0,0 +1,12 @@
+uuid: 92fa8f62-b5f9-47ce-8419-ccb809633941
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: 3Ly1xMx90SxhhhBmZjDhcBCQ4kyR4u7tS5vLgA84B2M
+id: simplenews_subscriber.account
+label: Account
+targetEntityType: simplenews_subscriber
+cache: true

+ 12 - 0
config/sync/core.entity_form_mode.simplenews_subscriber.block.yml

@@ -0,0 +1,12 @@
+uuid: 92b22a9b-0f91-40dd-8ad5-e69f2b7d03a0
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: 7EIO8InzdeUlS1NCs5hq23QRzWmqAKGjeSqd3hQP62s
+id: simplenews_subscriber.block
+label: Block
+targetEntityType: simplenews_subscriber
+cache: true

+ 12 - 0
config/sync/core.entity_form_mode.simplenews_subscriber.page.yml

@@ -0,0 +1,12 @@
+uuid: 6308a7e2-7d22-4601-b46f-6fd252d67973
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: ZNiTMgBURMLUyp3dwxIn7Zz_hREzPRpyF2M-Dm3e1BI
+id: simplenews_subscriber.page
+label: Page
+targetEntityType: simplenews_subscriber
+cache: true

+ 33 - 0
config/sync/core.entity_view_display.node.simplenews_issue.default.yml

@@ -0,0 +1,33 @@
+uuid: 54e1bd31-29e3-40b7-a78d-389ad2e89184
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.field.node.simplenews_issue.body
+    - field.field.node.simplenews_issue.simplenews_issue
+    - node.type.simplenews_issue
+  module:
+    - text
+    - user
+_core:
+  default_config_hash: 2uFXyR4335F9Qrls0Lx2QTobeBiF6FN1PeDjJEv47Yw
+id: node.simplenews_issue.default
+targetEntityType: node
+bundle: simplenews_issue
+mode: default
+content:
+  body:
+    type: text_default
+    weight: 0
+    label: hidden
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+  links:
+    weight: 1
+    settings: {  }
+    third_party_settings: {  }
+    region: content
+hidden:
+  langcode: true
+  simplenews_issue: true

+ 30 - 0
config/sync/core.entity_view_display.node.simplenews_issue.email_html.yml

@@ -0,0 +1,30 @@
+uuid: 595d84b8-78d5-46b1-855d-93f466a736b9
+langcode: en
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.node.email_html
+    - field.field.node.simplenews_issue.body
+    - field.field.node.simplenews_issue.simplenews_issue
+    - node.type.simplenews_issue
+  module:
+    - text
+    - user
+_core:
+  default_config_hash: k7huXut68pdao0qGHWeETfwtQudI0SZ260TyVyGTOFg
+id: node.simplenews_issue.email_html
+targetEntityType: node
+bundle: simplenews_issue
+mode: email_html
+content:
+  body:
+    type: text_default
+    weight: 0
+    settings: {  }
+    third_party_settings: {  }
+    label: hidden
+    region: content
+hidden:
+  langcode: true
+  links: true
+  simplenews_issue: true

+ 30 - 0
config/sync/core.entity_view_display.node.simplenews_issue.email_plain.yml

@@ -0,0 +1,30 @@
+uuid: a836de9a-6d1f-4ed7-8600-fbc2b09286c1
+langcode: en
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.node.email_plain
+    - field.field.node.simplenews_issue.body
+    - field.field.node.simplenews_issue.simplenews_issue
+    - node.type.simplenews_issue
+  module:
+    - text
+    - user
+_core:
+  default_config_hash: yLPMU-4Mw-Wl011PDZNQMHzzeilyDjLSQZQ4LLQG08k
+id: node.simplenews_issue.email_plain
+targetEntityType: node
+bundle: simplenews_issue
+mode: email_plain
+content:
+  body:
+    type: text_default
+    weight: 0
+    settings: {  }
+    third_party_settings: {  }
+    label: hidden
+    region: content
+hidden:
+  langcode: true
+  links: true
+  simplenews_issue: true

+ 30 - 0
config/sync/core.entity_view_display.node.simplenews_issue.email_textalt.yml

@@ -0,0 +1,30 @@
+uuid: 6e5a75a4-cf9b-4b8c-bf00-dbde3b42dcb2
+langcode: en
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.node.email_textalt
+    - field.field.node.simplenews_issue.body
+    - field.field.node.simplenews_issue.simplenews_issue
+    - node.type.simplenews_issue
+  module:
+    - text
+    - user
+_core:
+  default_config_hash: nbS6YErkrJfcf1Lgbd-MEFDZvatGhf9ZYEdg7_phgRU
+id: node.simplenews_issue.email_textalt
+targetEntityType: node
+bundle: simplenews_issue
+mode: email_textalt
+content:
+  body:
+    type: text_default
+    weight: 0
+    settings: {  }
+    third_party_settings: {  }
+    label: hidden
+    region: content
+hidden:
+  langcode: true
+  links: true
+  simplenews_issue: true

+ 31 - 0
config/sync/core.entity_view_display.node.simplenews_issue.teaser.yml

@@ -0,0 +1,31 @@
+uuid: 1754e700-7290-485d-a404-4a052ef18ae2
+langcode: en
+status: true
+dependencies:
+  config:
+    - core.entity_view_mode.node.teaser
+    - field.field.node.simplenews_issue.body
+    - field.field.node.simplenews_issue.simplenews_issue
+    - node.type.simplenews_issue
+  module:
+    - text
+    - user
+_core:
+  default_config_hash: n2xAKuCwCLXGUcR4BjVa08OIbG6UDdyIQFjq_S91h50
+id: node.simplenews_issue.teaser
+targetEntityType: node
+bundle: simplenews_issue
+mode: teaser
+content:
+  body:
+    type: text_trimmed
+    weight: 0
+    settings:
+      trim_length: 600
+    third_party_settings: {  }
+    label: hidden
+    region: content
+hidden:
+  langcode: true
+  links: true
+  simplenews_issue: true

+ 15 - 0
config/sync/core.entity_view_mode.node.email_html.yml

@@ -0,0 +1,15 @@
+uuid: 6ee7e247-a08b-44e2-afad-8d29d6d383b5
+langcode: en
+status: false
+dependencies:
+  enforced:
+    module:
+      - simplenews
+  module:
+    - node
+_core:
+  default_config_hash: iQNOEsNlbBFbVMOoSwtfUd8YC0XpRLzTjXv48HYfxwE
+id: node.email_html
+label: 'Email: HTML'
+targetEntityType: node
+cache: true

+ 15 - 0
config/sync/core.entity_view_mode.node.email_plain.yml

@@ -0,0 +1,15 @@
+uuid: f0862c18-2c6b-499a-8515-76610cb5a178
+langcode: en
+status: false
+dependencies:
+  enforced:
+    module:
+      - simplenews
+  module:
+    - node
+_core:
+  default_config_hash: rCDGCl6pMFu6zZuErLQggKvmawfFDysFcZNCDL72U4M
+id: node.email_plain
+label: 'Email: Plain'
+targetEntityType: node
+cache: true

+ 15 - 0
config/sync/core.entity_view_mode.node.email_textalt.yml

@@ -0,0 +1,15 @@
+uuid: 8f2bb66b-0654-45b5-b4d7-1f44976cbb9f
+langcode: en
+status: false
+dependencies:
+  enforced:
+    module:
+      - simplenews
+  module:
+    - node
+_core:
+  default_config_hash: 3VUPDEGmxWyAGCr0U_RTGoPS3xmNiOj3NU0wy4vxgwI
+id: node.email_textalt
+label: 'Email: HTML text alternative'
+targetEntityType: node
+cache: true

+ 3 - 0
config/sync/core.extension.yml

@@ -57,6 +57,7 @@ module:
   link_attributes: 0
   linkit: 0
   locale: 0
+  mailgun: 0
   maillog: 0
   mailsystem: 0
   materio_id: 0
@@ -71,6 +72,7 @@ module:
   migrate_drupal_multilingual: 0
   migrate_plus: 0
   migrate_tools: 0
+  mimemail: 0
   node: 0
   options: 0
   page_cache: 0
@@ -86,6 +88,7 @@ module:
   search_api: 0
   search_api_db: 0
   select_translation: 0
+  simplenews: 0
   smart_trim: 0
   smtp: 0
   synonyms: 0

+ 24 - 0
config/sync/field.field.node.simplenews_issue.body.yml

@@ -0,0 +1,24 @@
+uuid: 61265270-ee6d-4f47-82ea-516f11bf4103
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.storage.node.body
+    - node.type.simplenews_issue
+  module:
+    - text
+_core:
+  default_config_hash: WmXguLYedqjDlEM-2yau5wACNAMvrbCVHXQUn4GQEDA
+id: node.simplenews_issue.body
+field_name: body
+entity_type: node
+bundle: simplenews_issue
+label: Body
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  display_summary: false
+field_type: text_with_summary

+ 33 - 0
config/sync/field.field.node.simplenews_issue.simplenews_issue.yml

@@ -0,0 +1,33 @@
+uuid: 303631d0-6080-4189-aa26-e18a1aabc706
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.storage.node.simplenews_issue
+    - node.type.simplenews_issue
+  module:
+    - simplenews
+_core:
+  default_config_hash: 7I8TFo87YOgsZYmlZeFxbC-uebIhSy0RGoSxIem8zUQ
+id: node.simplenews_issue.simplenews_issue
+field_name: simplenews_issue
+entity_type: node
+bundle: simplenews_issue
+label: Newsletter
+description: ''
+required: true
+translatable: true
+default_value:
+  -
+    target_id: default
+    handler: simplenews_all
+    handler_settings: {  }
+    status: 0
+    sent_count: 0
+    subscribers: 0
+default_value_callback: ''
+settings:
+  handler: 'default:simplenews_newsletter'
+  handler_settings:
+    target_bundles: null
+field_type: simplenews_issue

+ 25 - 0
config/sync/field.field.simplenews_subscriber.simplenews_subscriber.subscriptions.yml

@@ -0,0 +1,25 @@
+uuid: 5c76fa02-bca2-4e1a-b7a1-ee0250f863cb
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.storage.simplenews_subscriber.subscriptions
+  module:
+    - simplenews
+_core:
+  default_config_hash: '-FGoXJQMTtfhnYhAdYmmB815lFLwEn09sI0nyn2EbKM'
+id: simplenews_subscriber.simplenews_subscriber.subscriptions
+field_name: subscriptions
+entity_type: simplenews_subscriber
+bundle: simplenews_subscriber
+label: Subscriptions
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:simplenews_newsletter'
+  handler_settings:
+    target_bundles: null
+field_type: simplenews_subscription

+ 22 - 0
config/sync/field.storage.node.simplenews_issue.yml

@@ -0,0 +1,22 @@
+uuid: 9a1c075d-72f0-456f-a1fa-501acb90db95
+langcode: und
+status: true
+dependencies:
+  module:
+    - node
+    - simplenews
+_core:
+  default_config_hash: WH-ddyUo4oWNnk6HaulK2RLdPTM4CV0xBZSj5HFqAnQ
+id: node.simplenews_issue
+field_name: simplenews_issue
+entity_type: node
+type: simplenews_issue
+settings:
+  target_type: simplenews_newsletter
+module: simplenews
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 21 - 0
config/sync/field.storage.simplenews_subscriber.subscriptions.yml

@@ -0,0 +1,21 @@
+uuid: 9692ac0e-4f66-4374-b221-6baaf0925877
+langcode: und
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: wPBNO4_O9cizdnYp2mpq2Dd3O163g-2v5v6_yazR4MA
+id: simplenews_subscriber.subscriptions
+field_name: subscriptions
+entity_type: simplenews_subscriber
+type: simplenews_subscription
+settings:
+  target_type: simplenews_newsletter
+module: simplenews
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 24 - 0
config/sync/language/fr/views.view.simplenews_newsletters.yml

@@ -0,0 +1,24 @@
+display:
+  default:
+    display_title: Maître
+    display_options:
+      exposed_form:
+        options:
+          submit_button: Appliquer
+          reset_button_label: Réinitialiser
+          exposed_sorts_label: 'Trier par'
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      pager:
+        options:
+          expose:
+            items_per_page_label: 'Éléments par page'
+            items_per_page_options_all_label: '- Tout -'
+            offset_label: Décalage
+      fields:
+        node_bulk_form:
+          action_title: 'Pour cette sélection'
+        status:
+          label: Publié
+        created:
+          label: 'Mis à jour'

+ 33 - 0
config/sync/language/fr/views.view.simplenews_subscribers.yml

@@ -0,0 +1,33 @@
+display:
+  default:
+    display_title: Maître
+    display_options:
+      exposed_form:
+        options:
+          submit_button: Appliquer
+          reset_button_label: Réinitialiser
+          exposed_sorts_label: 'Trier par'
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      pager:
+        options:
+          expose:
+            items_per_page_label: 'Éléments par page'
+            items_per_page_options_all_label: '- Tout -'
+            offset_label: Décalage
+      fields:
+        user_name:
+          label: 'Nom d''utilisateur'
+        status:
+          label: Actif
+        created:
+          label: Créé(e)
+        operations:
+          label: Actions
+      filters:
+        status:
+          expose:
+            label: Actif
+        subscriptions_status:
+          expose:
+            label: Etat

+ 13 - 0
config/sync/mailgun.settings.yml

@@ -0,0 +1,13 @@
+api_key: ''
+working_domain: _sender
+debug_mode: false
+test_mode: false
+tracking_opens: ''
+tracking_clicks: ''
+tracking_exception: 'user:password_reset'
+format_filter: plain_text
+use_queue: false
+use_theme: false
+tagging_mailkey: true
+_core:
+  default_config_hash: bMOl3jD7ZuzZMuaUYzyqadr56G486ldo28NYIkK_54g

+ 1 - 1
config/sync/migrate_plus.migration.d7_allpublicfiles.yml

@@ -1,4 +1,4 @@
-uuid: e549aecb-1717-48fd-84bf-9583f4e6f6eb
+uuid: 3430da79-cc12-48fc-91f1-acef3ea235d6
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_node_materiau.yml

@@ -1,4 +1,4 @@
-uuid: 4c86eb85-1a5f-4e66-9bb3-85fab7ecf505
+uuid: 24a0d73a-bb5d-472d-9f45-3f9806834ece
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_node_materiau_i18n.yml

@@ -1,4 +1,4 @@
-uuid: e2b8d38d-1ae4-4812-b1f2-5b8dc0d8d7df
+uuid: 103478ec-9372-40a4-bd28-67f6b327776d
 langcode: en
 status: true
 dependencies: {  }

+ 79 - 0
config/sync/migrate_plus.migration.d7_simplenews_nodes.yml

@@ -0,0 +1,79 @@
+uuid: d2ee3a75-1c75-451b-8ee2-ba45ab6834da
+langcode: en
+status: true
+dependencies: {  }
+_core:
+  default_config_hash: V4b8Ctj8B8jqXWdO1pnAIWyZxa_cdp-tjxU-swY0jvE
+id: d7_simplenews_nodes
+class: null
+field_plugin_method: null
+cck_plugin_method: null
+migration_tags:
+  - 'Drupal 7'
+  - Content
+  - Materio
+migration_group: d7_materio
+label: 'Simplenews newsletters nodes'
+source:
+  plugin: d7_simplenews_nodes
+  node_type: simplenews
+  high_water_property:
+    name: changed
+    alias: 'n'
+process:
+  type:
+    plugin: default_value
+    default_value: simplenews_issue
+  title: title
+  created: created
+  changed: changed
+  uid:
+    plugin: migration_lookup
+    migration: d7_users
+    source: uid
+  field_migration:
+    plugin: default_value
+    default_value: migration_imported
+  body:
+    plugin: iterator
+    source: body
+    process:
+      value: value
+      format:
+        plugin: default_value
+        default_value: wysiwyg
+  langcode: language
+  field_workflow:
+    -
+      plugin: default_value
+      source: workflow
+      default_value: 2
+    -
+      plugin: static_map
+      default_value: 2
+      map:
+        1: workflow_creation
+        2: workflow_hidden
+        3: workflow_visible
+        4: workflow_imported
+        5: workflow_edited
+  simplenews_issue:
+    -
+      plugin: extract
+      source: field_simplenews_term
+      index:
+        - 0
+        - tid
+    -
+      plugin: static_map
+      map:
+        6585: test
+        6374: ze_daily_materio_
+        6274: materio_newsletter
+        7881: companies
+destination:
+  plugin: 'entity:node'
+migration_dependencies:
+  required:
+    - d7_allpublicfiles
+    - d7_users

+ 1 - 1
config/sync/migrate_plus.migration.d7_taxonomy_term_company.yml

@@ -1,4 +1,4 @@
-uuid: 2a02b09a-204e-4e04-bbdd-3f10f47856a0
+uuid: fb66841a-8bd9-410b-a61d-eba0efbe2589
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_taxonomy_term_showroom.yml

@@ -1,4 +1,4 @@
-uuid: cb5f7d31-f610-4abd-a4b5-70c5e0db4e2c
+uuid: e98881d9-6886-44cb-aa4c-448e7ab54427
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_taxonomy_term_tags.yml

@@ -1,4 +1,4 @@
-uuid: 9dcbad73-6576-410f-a0aa-f9d23c94ce59
+uuid: 28abdd1f-09e5-449d-b7ca-6cfafab42011
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_taxonomy_term_tags_i18n.yml

@@ -1,4 +1,4 @@
-uuid: 16eb6c05-cf5c-4810-8eb8-e6e03433c0af
+uuid: db84d816-e6ab-4f1d-9870-915a8e769cb9
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus.yml

@@ -1,4 +1,4 @@
-uuid: 56e57ba6-a3af-481c-b8f2-4e935acf1aae
+uuid: 88ec814e-8ff4-40e1-92b6-5ce2f5652cfc
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n.yml

@@ -1,4 +1,4 @@
-uuid: dc2dca54-3a82-4fb9-acb1-37976ab1c665
+uuid: 00905a42-742e-430d-bcdc-ce3f3ae5c526
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration.d7_user_profile.yml

@@ -1,4 +1,4 @@
-uuid: 42034c67-180d-4220-a44e-9c5576e979b2
+uuid: 06e1a8cb-0843-4b5e-b771-f8faa87e23f3
 langcode: en
 status: true
 dependencies:

+ 1 - 1
config/sync/migrate_plus.migration.d7_users.yml

@@ -1,4 +1,4 @@
-uuid: f436e9b2-bb3c-4334-b7aa-bdf7c56d5591
+uuid: 338268b0-bcce-449b-91e2-778d2ae1b77c
 langcode: en
 status: true
 dependencies: {  }

+ 1 - 1
config/sync/migrate_plus.migration_group.d7_materio.yml

@@ -1,4 +1,4 @@
-uuid: b9da768b-b306-4b04-b690-1630ea3b3d4f
+uuid: 5b4b459f-6dc1-4dc6-a5be-784890476b1f
 langcode: en
 status: true
 dependencies:

+ 14 - 0
config/sync/mimemail.settings.yml

@@ -0,0 +1,14 @@
+format: full_html
+name: ''
+mail: ''
+linkonly: false
+textonly: false
+sitestyle: true
+simple_address: false
+engine: mimemail
+preserve_class: false
+advanced:
+  incoming: false
+  key: ''
+_core:
+  default_config_hash: 7mRdLbI-Rda0ePrw4IkNSJd8m_lTx7nLZnVfbNbyfwA

+ 13 - 0
config/sync/node.type.simplenews_issue.yml

@@ -0,0 +1,13 @@
+uuid: 91eb4bfa-68a0-4aef-b7dc-44370d549cc2
+langcode: en
+status: true
+dependencies: {  }
+_core:
+  default_config_hash: 3BiX0lHzQ8EyHRnO56OziilMZPNxJImXpSAQUTuALLU
+name: 'Newsletter Issue'
+type: simplenews_issue
+description: 'Use <em>Newsletter Issue</em> for newsletters.'
+help: ''
+new_revision: false
+preview_mode: 1
+display_submitted: false

+ 17 - 0
config/sync/simplenews.newsletter.companies.yml

@@ -0,0 +1,17 @@
+uuid: 3f1f8aa7-c8c9-4ad2-9cdd-1da4c7db06ac
+langcode: en
+status: true
+dependencies: {  }
+name: Companies
+id: companies
+description: ''
+format: html
+priority: 3
+receipt: false
+from_name: materiO’
+subject: '[node:title]'
+from_address: info@materio.com
+hyperlinks: true
+new_account: none
+opt_inout: double
+weight: 0

+ 17 - 0
config/sync/simplenews.newsletter.materio_newsletter.yml

@@ -0,0 +1,17 @@
+uuid: 3e63cf60-30a5-46aa-a43d-05e499decc72
+langcode: en
+status: true
+dependencies: {  }
+name: 'materiO’ newsletter'
+id: materio_newsletter
+description: ''
+format: html
+priority: 3
+receipt: false
+from_name: materiO’
+subject: '[node:title]'
+from_address: info@materio.com
+hyperlinks: true
+new_account: 'on'
+opt_inout: double
+weight: 0

+ 17 - 0
config/sync/simplenews.newsletter.test.yml

@@ -0,0 +1,17 @@
+uuid: 71a8ff4a-a7e8-4809-b67a-03e7ae45719b
+langcode: en
+status: true
+dependencies: {  }
+name: test
+id: test
+description: ''
+format: html
+priority: 3
+receipt: false
+from_name: materiO’
+subject: '[[simplenews-newsletter:name]] [node:title]'
+from_address: info@materio.com
+hyperlinks: true
+new_account: none
+opt_inout: double
+weight: 0

+ 17 - 0
config/sync/simplenews.newsletter.ze_daily_materio_.yml

@@ -0,0 +1,17 @@
+uuid: e47899ca-0ae0-4479-982c-01a2db3de9e4
+langcode: en
+status: true
+dependencies: {  }
+name: 'Ze Daily materiO'''
+id: ze_daily_materio_
+description: ''
+format: html
+priority: 3
+receipt: false
+from_name: materiO’
+subject: '[node:title]'
+from_address: info@materio.com
+hyperlinks: true
+new_account: 'on'
+opt_inout: double
+weight: 0

+ 34 - 0
config/sync/simplenews.settings.yml

@@ -0,0 +1,34 @@
+hash_expiration: 86400
+newsletter:
+  format: html
+  priority: 3
+  receipt: false
+  from_address: info@materio.com
+  from_name: materiO’
+subscriber:
+  sync_fields: true
+subscription:
+  use_combined: multiple
+  confirm_subscribe_subject: 'Confirmation for [simplenews-newsletter:name] from [site:name]'
+  confirm_subscribe_unsubscribed: "We have received a request to subscribe [simplenews-subscriber:mail] to the [simplenews-newsletter:name] newsletter on [site:name] website at [site:url]. To confirm please use the link below. \n\n [simplenews-subscriber:subscribe-url]"
+  confirm_subscribe_subscribed: 'We have received a request to subscribe [simplenews-subscriber:mail] to the [simplenews-newsletter:name]  newsletter on [site:name] website at [site:url]. However, this email is already subscribed to this newsletter. If you intended to unsubscribe please visit our site: [site:url]'
+  confirm_unsubscribe_subscribed: "We have received a request to remove the [simplenews-subscriber:mail] from the [simplenews-newsletter:name] mailing list on [site:name] website at [site:url]. To confirm please use the link below.\r\n\r\n[simplenews-subscriber:unsubscribe-url]"
+  confirm_unsubscribe_unsubscribed: 'We have received a request to remove the [simplenews-subscriber:mail] from the [simplenews-newsletter:name] mailing list on [site:name] website at [site:url]. However, this email is not subscribed to this mailing list. If you intended to subscribe please visit our site at [site:url]'
+  confirm_combined_subject: 'Confirmation for [site:name]'
+  confirm_combined_body: "We have received a request for the following subscription changes for [simplenews-subscriber:mail] at [site:url]:\r\n\r\n[changes-list]\r\n\r\nTo confirm please use the link below.\r\n\r\n[simplenews-subscriber:combined-url]"
+  confirm_combined_body_unchanged: "We have received a request for the following subscription changes for [simplenews-subscriber:mail] at [site:url]:\r\n\r\n[changes-list]\r\n\r\nNo confirmation necessary because all requested changes equal the current state."
+  confirm_combined_line_subscribe_unsubscribed: 'Subscribe to [simplenews-newsletter:name]'
+  confirm_combined_line_subscribe_subscribed: 'Already subscribed to [simplenews-newsletter:name]'
+  confirm_combined_line_unsubscribe_subscribed: 'Unsubscribe from [simplenews-newsletter:name]'
+  confirm_combined_line_unsubscribe_unsubscribed: 'Already unsubscribed from [simplenews-newsletter:name]'
+  confirm_subscribe_page: ''
+  confirm_unsubscribe_page: ''
+mail:
+  use_cron: true
+  throttle: 20
+  spool_progress_expiration: 3600
+  spool_expire: 0
+  debug: true
+  source_cache: null
+_core:
+  default_config_hash: cy-hJPYCnfCsuUZA7VDoAwssKhRJCa8N88iJTaWiims

+ 13 - 0
config/sync/system.action.simplenews_send_action.yml

@@ -0,0 +1,13 @@
+uuid: 5825f3da-5975-4825-82c0-ded153e77282
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: _80qceRjNVCStX2wbyle-6zMazNn3VsvHpwLRV3Gr5M
+id: simplenews_send_action
+label: 'Send newsletter issue'
+type: node
+plugin: simplenews_send_action
+configuration: {  }

+ 13 - 0
config/sync/system.action.simplenews_stop_action.yml

@@ -0,0 +1,13 @@
+uuid: 71c8ca70-6d66-4c50-9781-63c6e35a4d2f
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: 03Ao5qcJ1Dn0biP58cSBcKu_JNkpvt9n8tHLi5SToJ4
+id: simplenews_stop_action
+label: 'Stop sending'
+type: node
+plugin: simplenews_stop_action
+configuration: {  }

+ 1 - 0
config/sync/system.mail.yml

@@ -1,5 +1,6 @@
 interface:
   default: maillog
+  mailgun: mailgun
 langcode: fr
 _core:
   default_config_hash: lCmomLfOMrVmswIaFN0SimRdg6H1_a0nU60SauWb2WA

+ 32 - 0
config/sync/ultimate_cron.job.simplenews_cron.yml

@@ -0,0 +1,32 @@
+uuid: 0a714008-1181-44ac-ba76-8af1bac79f95
+langcode: en
+status: true
+dependencies:
+  module:
+    - simplenews
+_core:
+  default_config_hash: S4R8gMB5KRRp4AeUvku-2qpcRuD0o_Lu8UgnSXEHyBw
+title: 'Sends newsletters'
+id: simplenews_cron
+weight: 0
+module: simplenews
+callback: simplenews_cron
+scheduler:
+  id: simple
+  configuration:
+    rules:
+      - '*/5+@ * * * *'
+launcher:
+  id: serial
+  configuration:
+    timeouts:
+      lock_timeout: 3600
+      max_execution_time: 3600
+    launcher:
+      max_threads: 1
+logger:
+  id: database
+  configuration:
+    method: '3'
+    expire: 1209600
+    retain: 1000

+ 1 - 0
config/sync/user.role.anonymous.yml

@@ -19,6 +19,7 @@ permissions:
   - 'create generique workflow_transition'
   - 'create migration workflow_transition'
   - 'create workflow workflow_transition'
+  - 'subscribe to newsletters'
   - 'use text format wysiwyg'
   - 'view published fil entities'
   - 'view search api pages'

+ 1 - 0
config/sync/user.role.authenticated.yml

@@ -25,6 +25,7 @@ permissions:
   - 'edit own composition entities'
   - 'edit own fil entities'
   - 'opt-in or out of matomo tracking'
+  - 'subscribe to newsletters'
   - 'use chutier'
   - 'use text format wysiwyg'
   - 'view own unpublished chutier entities'

+ 623 - 0
config/sync/views.view.simplenews_newsletters.yml

@@ -0,0 +1,623 @@
+uuid: 605ef472-e411-4460-a5fd-c3ca7081b8b9
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.storage.node.simplenews_issue
+  module:
+    - node
+    - simplenews
+    - user
+_core:
+  default_config_hash: HuVRq8jAJW0fd2D6rM4IFSjVVl0zaXy3GRZMHpgstik
+id: simplenews_newsletters
+label: Newsletters
+module: views
+description: ''
+tag: ''
+base_table: node_field_data
+base_field: nid
+core: 8.x
+display:
+  default:
+    display_plugin: default
+    id: default
+    display_title: Master
+    position: 0
+    display_options:
+      access:
+        type: perm
+        options:
+          perm: 'send newsletter'
+      cache:
+        type: none
+        options: {  }
+      query:
+        type: views_query
+        options:
+          disable_sql_rewrite: false
+          distinct: false
+          replica: false
+          query_comment: ''
+          query_tags: {  }
+      exposed_form:
+        type: basic
+        options:
+          submit_button: Apply
+          reset_button: false
+          reset_button_label: Reset
+          exposed_sorts_label: 'Sort by'
+          expose_sort_order: true
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      pager:
+        type: full
+        options:
+          items_per_page: 10
+          offset: 0
+          id: 0
+          total_pages: null
+          expose:
+            items_per_page: false
+            items_per_page_label: 'Items per page'
+            items_per_page_options: '5, 10, 25, 50'
+            items_per_page_options_all: false
+            items_per_page_options_all_label: '- All -'
+            offset: false
+            offset_label: Offset
+          tags:
+            previous: '‹ previous'
+            next: 'next ›'
+            first: '« first'
+            last: 'last »'
+          quantity: 9
+      style:
+        type: table
+      row:
+        type: fields
+      fields:
+        node_bulk_form:
+          id: node_bulk_form
+          table: node
+          field: node_bulk_form
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: 'Node operations bulk form'
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          action_title: 'With selection'
+          include_exclude: include
+          selected_actions:
+            - simplenews_send_action
+            - simplenews_stop_action
+          entity_type: node
+          plugin_id: node_bulk_form
+        title:
+          id: title
+          table: node_field_data
+          field: title
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Issue
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: false
+            ellipsis: false
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          link_to_node: true
+          entity_type: node
+          entity_field: title
+          plugin_id: node
+        simplenews_issue:
+          id: simplenews_issue
+          table: node__simplenews_issue
+          field: simplenews_issue
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Newsletter
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: target_id
+          type: entity_reference_label
+          settings:
+            link: true
+          group_column: ''
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+          plugin_id: field
+        status:
+          id: status
+          table: node_field_data
+          field: status
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Published
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: value
+          type: boolean
+          settings:
+            format: unicode-yes-no
+            format_custom_true: ''
+            format_custom_false: ''
+          group_column: value
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: separator
+          separator: ', '
+          field_api_classes: false
+          entity_type: node
+          entity_field: status
+          plugin_id: field
+        created:
+          id: created
+          table: node_field_data
+          field: created
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Updated
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          date_format: short
+          custom_date_format: ''
+          timezone: ''
+          entity_type: node
+          entity_field: created
+          plugin_id: date
+        send_status:
+          id: send_status
+          table: node
+          field: send_status
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: 'Send status'
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          entity_type: node
+          plugin_id: simplenews_send_status
+        operations:
+          id: operations
+          table: node
+          field: operations
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: 'Operations links'
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          destination: true
+          entity_type: node
+          plugin_id: entity_operations
+      filters:
+        simplenews_issue_target_id:
+          id: simplenews_issue_target_id
+          table: node__simplenews_issue
+          field: simplenews_issue_target_id
+          relationship: none
+          group_type: group
+          admin_label: ''
+          operator: 'not empty'
+          value: {  }
+          group: 1
+          exposed: false
+          expose:
+            operator_id: ''
+            label: ''
+            description: ''
+            use_operator: false
+            operator: ''
+            identifier: ''
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+            reduce: false
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+          plugin_id: in_operator
+        simplenews_issue_target_id_1:
+          id: simplenews_issue_target_id_1
+          table: node__simplenews_issue
+          field: simplenews_issue_target_id
+          relationship: none
+          group_type: group
+          admin_label: ''
+          operator: in
+          value: {  }
+          group: 1
+          exposed: true
+          expose:
+            operator_id: simplenews_issue_target_id_1_op
+            label: Newsletter
+            description: ''
+            use_operator: false
+            operator: simplenews_issue_target_id_1_op
+            identifier: simplenews_issue_target_id_1
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              administrator: '0'
+            reduce: false
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+          plugin_id: in_operator
+      sorts:
+        created:
+          id: created
+          table: node_field_data
+          field: created
+          order: DESC
+          entity_type: node
+          entity_field: created
+          plugin_id: date
+          relationship: none
+          group_type: group
+          admin_label: ''
+          exposed: false
+          expose:
+            label: ''
+          granularity: second
+      title: Newsletters
+      header: {  }
+      footer: {  }
+      empty:
+        area:
+          id: area
+          table: views
+          field: area
+          relationship: none
+          group_type: group
+          admin_label: ''
+          empty: true
+          tokenize: false
+          content:
+            value: 'No newsletter issues found.'
+            format: basic_html
+          plugin_id: text
+      relationships: {  }
+      arguments: {  }
+      display_extenders: {  }
+    cache_metadata:
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - url.query_args
+        - 'user.node_grants:view'
+        - user.permissions
+      cacheable: false
+      max-age: 0
+      tags:
+        - 'config:field.storage.node.simplenews_issue'
+  page_1:
+    display_plugin: page
+    id: page_1
+    display_title: Page
+    position: 1
+    display_options:
+      display_extenders: {  }
+      path: admin/content/simplenews
+      menu:
+        type: tab
+        title: 'Newsletter issues'
+        description: ''
+        parent: system.admin_content
+        weight: 0
+        context: '0'
+        menu_name: admin
+    cache_metadata:
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - url.query_args
+        - 'user.node_grants:view'
+        - user.permissions
+      cacheable: false
+      max-age: 0
+      tags:
+        - 'config:field.storage.node.simplenews_issue'

+ 618 - 0
config/sync/views.view.simplenews_subscribers.yml

@@ -0,0 +1,618 @@
+uuid: 53a979eb-9ee5-4a9b-b4fb-602e19e052f7
+langcode: en
+status: true
+dependencies:
+  config:
+    - field.storage.simplenews_subscriber.subscriptions
+  module:
+    - simplenews
+    - user
+_core:
+  default_config_hash: WyIS3mrmy1vkSOWTl1IGi_Zi0UmkVqmtW06au3N9rXU
+id: simplenews_subscribers
+label: Subscribers
+module: views
+description: ''
+tag: ''
+base_table: simplenews_subscriber
+base_field: id
+core: 8.x
+display:
+  default:
+    display_plugin: default
+    id: default
+    display_title: Master
+    position: 0
+    display_options:
+      access:
+        type: perm
+        options:
+          perm: 'administer simplenews subscriptions'
+      cache:
+        type: none
+        options: {  }
+      query:
+        type: views_query
+        options:
+          disable_sql_rewrite: false
+          distinct: true
+          replica: false
+          query_comment: ''
+          query_tags: {  }
+      exposed_form:
+        type: basic
+        options:
+          submit_button: Apply
+          reset_button: false
+          reset_button_label: Reset
+          exposed_sorts_label: 'Sort by'
+          expose_sort_order: true
+          sort_asc_label: Asc
+          sort_desc_label: Desc
+      pager:
+        type: full
+        options:
+          items_per_page: 30
+          offset: 0
+          id: 0
+          total_pages: null
+          tags:
+            previous: '‹ previous'
+            next: 'next ›'
+            first: '« first'
+            last: 'last »'
+          expose:
+            items_per_page: false
+            items_per_page_label: 'Items per page'
+            items_per_page_options: '5, 10, 25, 50'
+            items_per_page_options_all: false
+            items_per_page_options_all_label: '- All -'
+            offset: false
+            offset_label: Offset
+          quantity: 9
+      style:
+        type: table
+      row:
+        type: fields
+      fields:
+        mail:
+          table: simplenews_subscriber
+          field: mail
+          id: mail
+          entity_type: null
+          entity_field: mail
+          plugin_id: standard
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Email
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+        user_name:
+          id: user_name
+          table: simplenews_subscriber
+          field: user_name
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Username
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          entity_type: simplenews_subscriber
+          plugin_id: simplenews_user_name
+        subscriptions:
+          id: subscriptions
+          table: simplenews_subscriber__subscriptions
+          field: subscriptions
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Subscriptions
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          click_sort_column: target_id
+          type: simplenews_subscription_status
+          group_column: ''
+          group_columns: {  }
+          group_rows: true
+          delta_limit: 0
+          delta_offset: 0
+          delta_reversed: false
+          delta_first_last: false
+          multi_type: ul
+          separator: ', '
+          field_api_classes: false
+          plugin_id: field
+        status:
+          id: status
+          table: simplenews_subscriber
+          field: status
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Active
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          type: boolean
+          type_custom_true: ''
+          type_custom_false: ''
+          not: false
+          entity_type: simplenews_subscriber
+          entity_field: status
+          plugin_id: boolean
+        created:
+          id: created
+          table: simplenews_subscriber
+          field: created
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Created
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: null
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          date_format: fallback
+          custom_date_format: ''
+          timezone: ''
+          entity_type: simplenews_subscriber
+          entity_field: created
+          plugin_id: date
+        operations:
+          id: operations
+          table: simplenews_subscriber
+          field: operations
+          relationship: none
+          group_type: group
+          admin_label: ''
+          label: Operations
+          exclude: false
+          alter:
+            alter_text: false
+            text: ''
+            make_link: false
+            path: ''
+            absolute: false
+            external: false
+            replace_spaces: false
+            path_case: none
+            trim_whitespace: false
+            alt: ''
+            rel: ''
+            link_class: ''
+            prefix: ''
+            suffix: ''
+            target: ''
+            nl2br: false
+            max_length: 0
+            word_boundary: true
+            ellipsis: true
+            more_link: false
+            more_link_text: ''
+            more_link_path: ''
+            strip_tags: false
+            trim: false
+            preserve_tags: ''
+            html: false
+          element_type: ''
+          element_class: ''
+          element_label_type: ''
+          element_label_class: ''
+          element_label_colon: true
+          element_wrapper_type: ''
+          element_wrapper_class: ''
+          element_default_classes: true
+          empty: ''
+          hide_empty: false
+          empty_zero: false
+          hide_alter_empty: true
+          destination: true
+          entity_type: simplenews_subscriber
+          plugin_id: entity_operations
+      filters:
+        mail:
+          id: mail
+          table: simplenews_subscriber
+          field: mail
+          relationship: none
+          group_type: group
+          admin_label: ''
+          operator: contains
+          value: ''
+          group: 1
+          exposed: true
+          expose:
+            operator_id: mail_op
+            label: Email
+            description: ''
+            use_operator: false
+            operator: mail_op
+            identifier: mail
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              administrator: '0'
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+          entity_type: simplenews_subscriber
+          entity_field: mail
+          plugin_id: string
+        subscriptions_target_id:
+          id: subscriptions_target_id
+          table: simplenews_subscriber__subscriptions
+          field: subscriptions_target_id
+          relationship: none
+          group_type: group
+          admin_label: ''
+          operator: in
+          value: {  }
+          group: 1
+          exposed: true
+          expose:
+            operator_id: subscriptions_target_id_op
+            label: Newsletters
+            description: ''
+            use_operator: false
+            operator: subscriptions_target_id_op
+            identifier: subscriptions_target_id
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              administrator: '0'
+            reduce: false
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+          plugin_id: in_operator
+        status:
+          id: status
+          table: simplenews_subscriber
+          field: status
+          relationship: none
+          group_type: group
+          admin_label: ''
+          operator: '='
+          value: '1'
+          group: 1
+          exposed: true
+          expose:
+            operator_id: ''
+            label: Active
+            description: ''
+            use_operator: false
+            operator: status_op
+            identifier: status
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              administrator: '0'
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+          entity_type: simplenews_subscriber
+          entity_field: status
+          plugin_id: boolean
+        subscriptions_status:
+          id: subscriptions_status
+          table: simplenews_subscriber__subscriptions
+          field: subscriptions_status
+          relationship: none
+          group_type: group
+          admin_label: ''
+          operator: in
+          value:
+            1: '1'
+          group: 1
+          exposed: true
+          expose:
+            operator_id: subscriptions_status_op
+            label: Status
+            description: ''
+            use_operator: false
+            operator: subscriptions_status_op
+            identifier: subscriptions_status
+            required: false
+            remember: false
+            multiple: false
+            remember_roles:
+              authenticated: authenticated
+              anonymous: '0'
+              administrator: '0'
+            reduce: false
+          is_grouped: false
+          group_info:
+            label: ''
+            description: ''
+            identifier: ''
+            optional: true
+            widget: select
+            multiple: false
+            remember: false
+            default_group: All
+            default_group_multiple: {  }
+            group_items: {  }
+          plugin_id: in_operator
+      sorts: {  }
+      title: Subscribers
+      header: {  }
+      footer: {  }
+      empty:
+        area:
+          id: area
+          table: views
+          field: area
+          relationship: none
+          group_type: group
+          admin_label: ''
+          empty: true
+          tokenize: false
+          content:
+            value: 'No subscribers found.'
+            format: basic_html
+          plugin_id: text
+      relationships: {  }
+      arguments: {  }
+      display_extenders: {  }
+    cache_metadata:
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - url.query_args
+        - user.permissions
+      cacheable: false
+      max-age: -1
+      tags:
+        - 'config:field.storage.simplenews_subscriber.subscriptions'
+  page_1:
+    display_plugin: page
+    id: page_1
+    display_title: Page
+    position: 1
+    display_options:
+      display_extenders: {  }
+      path: admin/people/simplenews
+      menu:
+        type: tab
+        title: Subscribers
+        description: ''
+        parent: user.admin_index
+        weight: 11
+        context: '0'
+        menu_name: admin
+    cache_metadata:
+      contexts:
+        - 'languages:language_content'
+        - 'languages:language_interface'
+        - url
+        - url.query_args
+        - user.permissions
+      cacheable: false
+      max-age: -1
+      tags:
+        - 'config:field.storage.simplenews_subscriber.subscriptions'

+ 85 - 0
web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_simplenews_nodes.yml

@@ -0,0 +1,85 @@
+id: d7_simplenews_nodes
+migration_group: d7_materio
+dependencies:
+  module:
+    - migrate_drupal
+    - simplenews
+label: Simplenews newsletters nodes
+migration_tags:
+  - Drupal 7
+  - Content
+  - Materio
+
+source:
+  plugin: d7_simplenews_nodes
+  node_type: simplenews
+  high_water_property:
+    name: changed
+    alias: n
+
+destination:
+  plugin: entity:node
+
+process:
+  # nid
+  type:
+    plugin: default_value
+    default_value: simplenews_issue
+  title: title
+  created: created
+  changed: changed
+
+  uid:
+    plugin: migration_lookup
+    migration: d7_users
+    source: uid
+
+  field_migration:
+    plugin: default_value
+    default_value: 'migration_imported'
+  body:
+    plugin: iterator
+    source: body
+    process:
+      value: value
+      format:
+        plugin: default_value
+        default_value: wysiwyg
+  langcode: language
+
+  field_workflow:
+    -
+      plugin: default_value
+      source: workflow
+      default_value: 2
+    -
+      plugin: static_map
+      default_value: 2
+      map:
+        1: "workflow_creation"
+        2: "workflow_hidden"
+        3: "workflow_visible"
+        4: "workflow_imported"
+        5: "workflow_edited"
+
+  simplenews_issue:
+    -
+      plugin: extract
+      source: field_simplenews_term
+      index:
+        - 0
+        - tid
+    -
+      plugin: static_map
+      map:
+        6585: "test"
+        6374: "ze_daily_materio_"
+        6274: "materio_newsletter"
+        7881: "companies"
+
+  # Sent status
+
+migration_dependencies:
+  required:
+    - d7_allpublicfiles
+    - d7_users

+ 161 - 0
web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7SimplenewsNodes.php

@@ -0,0 +1,161 @@
+<?php
+
+namespace Drupal\materio_migrate\Plugin\migrate\source;
+
+use Drupal\Core\Extension\ModuleHandlerInterface;
+use Drupal\migrate\Row;
+use Drupal\migrate_drupal\Plugin\migrate\source\d7\FieldableEntity;
+use Drupal\Core\Database\Query\SelectInterface;
+use Drupal\Core\Entity\EntityManagerInterface;
+use Drupal\Core\Extension\ModuleHandler;
+use Drupal\Core\State\StateInterface;
+use Drupal\migrate\Plugin\MigrationInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Drupal 7 node source from database.
+ *
+ * @MigrateSource(
+ *   id = "d7_simplenews_nodes",
+ *   source_module = "node"
+ * )
+ */
+class D7SimplenewsNodes extends FieldableEntity {
+  /**
+   * The module handler.
+   *
+   * @var \Drupal\Core\Extension\ModuleHandlerInterface
+   */
+  protected $moduleHandler;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_manager);
+    $this->moduleHandler = $module_handler;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration = NULL) {
+    return new static(
+      $configuration,
+      $plugin_id,
+      $plugin_definition,
+      $migration,
+      $container->get('state'),
+      $container->get('entity.manager'),
+      $container->get('module_handler')
+    );
+  }
+
+  /**
+   * The join options between the node and the node_revisions table.
+   */
+  const JOIN = 'n.vid = nr.vid';
+
+  /**
+   * {@inheritdoc}
+   */
+  public function query() {
+    // Select node in its last revision.
+    $query = $this->select('node_revision', 'nr')
+      ->fields('n', [
+        'nid',
+        'type',
+        'uid',
+        'language',
+        'status',
+        'created',
+        'changed',
+        'comment',
+        'promote',
+        'sticky',
+        'tnid',
+        'translate',
+      ])
+      ->fields('nr', [
+        'vid',
+        'title',
+        'log',
+        'timestamp',
+      ])
+      ->orderBy('changed');
+
+    $query->addField('n', 'uid', 'node_uid');
+    $query->addField('nr', 'uid', 'revision_uid');
+    $query->innerJoin('node', 'n', static::JOIN);
+
+    if (isset($this->configuration['node_type'])) {
+      $query->condition('n.type', $this->configuration['node_type']);
+    }
+
+    return $query;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function prepareRow(Row $row) {
+    $nid = $row->getSourceProperty('nid');
+    $vid = $row->getSourceProperty('vid');
+    $type = $row->getSourceProperty('type');
+    $title = $row->getSourceProperty('title');
+    // drush_print('-- '.$nid."\t".$title);
+
+    // Get Field API field values.
+    foreach ($this->getFields('node', $type) as $field_name => $field) {
+      $row->setSourceProperty($field_name, $this->getFieldValues('node', $field_name, $nid, $vid, 'und'));
+    }
+
+    // workflow
+    $query = $this->select('workflow_node', 'wn');
+    $query->fields('wn', ['sid']);
+    $query->condition('wn.nid', $nid);
+    $results = $query->execute()->fetchField();
+    if(!$results){
+      $results = 2;
+      drush_print('WARNING: no workflow');
+    }
+    $row->setSourceProperty('workflow', $results);
+
+
+    return parent::prepareRow($row);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function fields() {
+    $fields = [
+      'nid' => $this->t('Node ID'),
+      'type' => $this->t('Type'),
+      'title' => $this->t('Title'),
+      'node_uid' => $this->t('Node authored by (uid)'),
+      'revision_uid' => $this->t('Revision authored by (uid)'),
+      'created' => $this->t('Created timestamp'),
+      'changed' => $this->t('Modified timestamp'),
+      'status' => $this->t('Published'),
+      'promote' => $this->t('Promoted to front page'),
+      'sticky' => $this->t('Sticky at top of lists'),
+      'revision' => $this->t('Create new revision'),
+      'language' => $this->t('Language (fr, en, ...)'),
+      'tnid' => $this->t('The translation set id for this node'),
+      'timestamp' => $this->t('The timestamp the latest revision of this node was created.'),
+    ];
+    return $fields;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getIds() {
+    $ids['nid']['type'] = 'integer';
+    $ids['nid']['alias'] = 'n';
+    return $ids;
+  }
+
+
+}

Some files were not shown because too many files changed in this diff