Add the snippet process plugin
4 unresolved threads
4 unresolved threads
Compare changes
src/Plugin/migrate/process/Snippet.php
0 → 100644
+ 191
− 0
@benjifisher I love this config validation. I wish we had finished the issue to do this consistently in core: https://www.drupal.org/project/drupal/issues/3247950
@benjifisher I think it would be worth documenting that one is not allowed to use
source
anywhere within a snippet. That's different from a typical process pipeline where there are cases that one might want to redefinesource
, particularly following askip_on_empty
. (Or maybe if they know that one weird trick!)This does NOT WORK:
but this does:
I added test coverage to prove that, and I added those examples to the doc block.
That's amazing! That hadn't occurred to me that you can explictly call
get
in this case. Very cool solution and a nice doc!