Add migrate process plugin

Created on 4 August 2025, 20 days ago

Problem/Motivation

A migrate process plugin that triggers an ECA event would allow to transform a row value using a model. I use it e.g. to replace the unsupported https://www.drupal.org/project/migrate_process_trim/ .

Proposed resolution

Add a migrate process plugin and a corresponding event to eca_migrate.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇨🇭Switzerland boromino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @boromino
  • @boromino opened merge request.
  • 🇩🇪Germany jurgenhaas Gottmadingen

    This uses an interesting implementation pattern such that a token value is expected to be set and then being returned to the event afterwards. In other cases, we have introduced separate action plugins to set the return value back to the event. Doing it with the clean-up is clever and we may well change other implementations to use something similar.

    What I'm wondering, though: do we have to make the token name configurable? We could instead hard-code the token name, which would then just be one less decision a user has to make.

    Apart from that, I've left a few comments in the MR.

Production build 0.71.5 2024