This plugin could really do with an example of how to use it in the README, including where to put it in a file migration.
I thought I should put it in in the process pipeline for the 'uri' property, but that caused all sorts of problems because the file_copy plugin has a weird array for its source.
After several failures, I managed to get it to work with this:
uri:
-
plugin: skip_on_404
method: row
source: '@source_full_path'
-
plugin: file_copy
source:
- '@source_full_path'
- uri
but then I looked in migrate_skip_on_404_migration_plugins_alter() and saw that it adds the 404 plugin to source_full_path process pipeline.
Active
1.1
Documentation