Problem/Motivation
`dom_str_replace` currently only accepts a single search/replacement pattern. The underlying replacement functions i.e. `str_replace()` and `preg_replace()` accepts both a single pattern and an array of patterns. It would be great if we can utilize their untapped abilities.
Steps to reproduce
N/A
Proposed resolution
Alter relevant type declarations in `DomStrReplace::doReplace()`, `DomStrReplace::getSearch()`, and `DomStrReplace::getReplace()` to accept and return both string and array types.
Remaining tasks
Raise a pull request.
User interface changes
N/A
API changes
The `search` and `replace` keys now accept both a single value as well as a Yaml list.
Data model changes
N/A
Issue fork migrate_plus-3569979
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
heddnPosted feedback on the MR.
Comment #4
progga commentedComment #6
heddnThanks for this new feature.