Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Here is an initial preg_replace plugin
Comment | File | Size | Author |
---|---|---|---|
#2 | migrate_plus_2824696_2.patch | 1.32 KB | Lowell |
Comments
Comment #2
Lowell CreditAttribution: Lowell as a volunteer and at Version3 commentedinitial plugin, no exceptions or tests included yet
Comment #3
heddnTagging
Comment #4
MatroskeenSince Drupal 9.2.0, the
callback
process plugin acceptsunpack_source
configuration property, which allows to supply multiple parameters into called function/method.With this feature, we can use any function that accepts multiple arguments, including
preg_replace
.Please take a look into the following change record for more details and examples: https://www.drupal.org/node/3205079
Comment #5
MatroskeenMoving to NR so maintainers can take a look.
Comment #6
MatroskeenWe can probably close this one in the same way as we did in #3051723: Include Migrate Process Trim as Plugin?.
Comment #7
heddnYeah, I tend to agree w/ @Matroskeen here. And, while I don't like the feeling it gives me when marking "won't fix", I can't think of a better status. The suggested changes here took time and effort and were valuable at the time of their creation. But we have more options now. Hmm, let's close it as "outdated" instead. That's a better status.