- 🇳🇱Netherlands megachriz
Array replacing is now supported.
If the source data is:
[ 'name' => [ 'foo', 'bar', 'qux', ], 'ext' => [ 'jpg', 'png', 'gif', ], ]
And you apply a the Rewrite plugin to the source 'name' using the text
[name].[ext]
You will get:
[ 'name' => [ 'foo.jpg', 'bar.png', 'qux.gif', ], 'ext' => [ 'jpg', 'png', 'gif', ], ]
I've also been working on supporting nested data, if you use the text
[name].[ext.1]
instead, you should get:[ 'name' => [ 'foo.png', 'bar.png', 'qux.png', ], 'ext' => [ 'jpg', 'png', 'gif', ], ]
For this I've not added test coverage yet. Marking as "needs work" for additional test coverage.
-
megachriz →
committed 61d8d5e5 on 8.x-1.x
Issue #3224959 by megachriz, codebymikey: Rewrite plugin: iterate...
-
megachriz →
committed 61d8d5e5 on 8.x-1.x
- 🇳🇱Netherlands megachriz
@codebymikey
Thanks for your review! I did not notice it earlier, since the issue did not get updated.I merged the code!