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.
Problem/Motivation
The WrapperExtract getStringBetween and WrapperRemove deleteStringBetween methods are only covering the first instance of a string. This can be misleading, also, it should make sense to provide optional scope configuration with values first, last or all, with a default value to all.
Example:
field_acronym:
plugin: wrapper_extract
source: name
open: (
close: )
scope: last
Remaining tasks
- Adapt WrapperExtract getStringBetween
- Adapt WrapperRemove deleteStringBetween
- Add the scope configuration in both process plugins
Comments
Comment #2
colorfield