I use a custom migration to update medias from an external JSON source. Inside this migration I use a custom plugin to search in database if the media name exist. If I get a ‘mid’ I want to update the media. But if no media was found I want to skip the row.
My migration :
# Destination. destination: plugin: entity:media default_bundle: image overwrite_properties: - changed - created # Mapping. process: # Create variables. _mid: plugin: get_media_id_from_title # Target existing media. mid: '@_mid' # Update fields. changed: changed created: created
How can I include the skip_on_empty plugin (on ‘mid’ value) for this?
I have testes several implementations without success.
Thanks for your help.