Migrating your webforms from Drupal 7 to Drupal 8

The migration of Webform module https://www.drupal.org/project/webform content from Drupal 7 to Drupal 8 is not trivial, since the module was totally redesigned for the Drupal 8 version.
Drupal 7 version of the module is based on specific Content Type and therefore each webform ended up represented as a Node.
Drupal 8 version changed drastically this design, moving to a more flexible and OOP oriented. Now webforms are based on configuration entities and submissions are content entities. So special migration path is needed. Fortunately community has approached this migration and issue and implemented the module webform_migration https://www.drupal.org/project/webform_migrate

Base on that module the workflow to have Webform data migrated to Drupal 8 it’s needed the following steps:

  1. Based on a Drupal 8 blank site
  2. Download and Install webform_migrate module on the site
  3. Enable webform_migrate module and dependencies
  4. Enable migrate and migrate_plus modules
  5. Import migration path configuration
    • from the downloaded webform_migrate module open the folder /migration_templates/d7/
    • you will need to import the two configuration yml files there, d7_webform.yml and d7_webform_submission.yml
    • Go to Configuration -> Configuration synchronization -> Import -> Single item and then select as “Configuration type” “Migration”. and paste the content of each of the previous files in the textbox.
    • You should see some success on importing the configuration.

Once done, you can proceed with the regular request for migration a Drupal 7 to Drupal 8 (http://entice.web.cern.ch/announcements/drupal-7-drupal-8-migration), specify in the support ticket that webform data is involved in the migration, so admins can check the result of the migration.

Happy migration!


I’m a developer and at the moment I’m doing a Drupal 7 to Drupal 8 site migration. The source site has webforms so I’m having trouble with that part of the migration.
Can you please provide more details on how to complete these d7_webform.yml and d7_webform_submission.ym templates?
Thank you in advance.