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.
Documented on https://drupal.org/node/2152731 . Agreed with catch we will link to the role migration besides the handbook page when that lands for an example. The most common use case for this will be moving the values of customizable (field API) fields to top properties.
Comment | File | Size | Author |
---|---|---|---|
#16 | interdiff.txt | 1.96 KB | chx |
#16 | 2152735_13.patch | 3.31 KB | chx |
#13 | 2152735_11.patch | 3.26 KB | chx |
#3 | interdiff.txt | 2.26 KB | chx |
Comments
Comment #1
chx CreditAttribution: chx commentedComment #2
dawehnerI wonder whether we can give a more helpful explanation of what is exactly the invalid input and how it should look like?
It would be cool to have proper visibility.
Comment #3
chx CreditAttribution: chx commentedComment #4
chx CreditAttribution: chx commentedTweaked the second exception.
Comment #6
chx CreditAttribution: chx commentedComment #7
dawehnerThank you!
Comment #8
catchextracts
I'd rather see the basic example in @code?
Comment #9
catchComment #10
chx CreditAttribution: chx commentedExtracts, yes, I caught that myself but I am pushing back on replicating the handbook in core. We can (and do) work on the handbook constantly and I'd rather not submit a document patch all the time.
Now, this patch includes the next step in the plugin evolution: a process plugin base and a specific annotation class. This is step one in multiple handling that will be needed for the role migration. I have tried very hard to keep the patch as small as possible and so the multiple handling in MigrateExecutable is not in here, it'll be in the role migration.
Comment #11
chx CreditAttribution: chx commentedComment #12
chx CreditAttribution: chx commentedComment #13
chx CreditAttribution: chx commentedComment #14
chx CreditAttribution: chx commentedComment #15
dawehnerI wonder whether we should support also 'index' as many times you think more of a singular value.
(optional) I kind of love @see to the actual class so you can jump to the class really fast in case you use an IDE. Nice test coverage!
Comment #16
chx CreditAttribution: chx commentedComment #17
dawehnerThank you
Comment #18
webchickNothing to complain about here, this is the same as other process plugins, and thanks for linking to the full docs!
Only thing is that handbook page makes me nervous. It shows we're replacing a line of extremely basic PHP 101 with 8 lines of Drupal-specific YAML that has to be formatted "just so." I'm concerned about the DX impact of that. :\ But I guess this ship has already sailed on using YAML for these inputs, so not much can be done about that. Maybe worth a once-over once things are closer to ready to see if we can improve some of the verboseness, not sure.
In the meantime, however...
Committed and pushed to 8.x. Thanks!