vasi / migrate_process_file

Drupal 8 migration process for importing files
GNU General Public License v2.0
3 stars 1 forks source link

Plugin not working #1

Open a-fro opened 8 years ago

a-fro commented 8 years ago

Thanks for your article and example, Dave! Unfortunately, I can't get it to work. I notice that there are a couple of discrepancies between the readme and example. In the readme, you have:

process:
      field_image:
        - source: uri_field
          plugin: migrate_process_file

While in the example you have:

field_image:
    - source: image/original
      plugin: skip_on_empty
      method: process
    - plugin: file_import

Any advice on getting it working with a migration? I've tried various combinations, but it doesn't seem to enter the transform method of the FileImport plugin class.

gitressa commented 8 years ago

It's because the code in the example is for Drupal 8.0, but Migrate works differently in Drupal 8.1. It would be really great if the code got updated, to get a working example of how to import files for Drupal 8.1.