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.
Updated: Comment 0
Problem/Motivation
Much like back in the days with node_delete() you don't want to make the API be kinda different depending on the current user.
One example is book_node_presave which checks for the current user.
An alternative approach would be to set a new revision on book_node_builder.
Proposed resolution
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#3 | book-2218691-3.patch | 1.21 KB | dawehner |
Comments
Comment #1
dawehnerComment #2
chx CreditAttribution: chx commentedNote that migrate_drupal runs migrate_drupal_module_implements_alter to nuke book_node_presave then copies it to migrate_drupal_node_presave with a killswitch:
this shouldn't be necessary.
Comment #3
dawehnerSomething like this.
Comment #4
chx CreditAttribution: chx commentedComment #5
chx CreditAttribution: chx commentedI can confirm this solves the problem migrate faces; assigning to pwolanin for review.
Comment #6
pwolanin CreditAttribution: pwolanin commentedLooks ok, though all the hook_node_X implementations should be using NodeInterface. I guess we can fix that in a follow-up.
Comment #7
pwolanin CreditAttribution: pwolanin commented3: book-2218691-3.patch queued for re-testing.
Comment #8
dawehnerAdding all the tags.
Comment #10
dawehner3: book-2218691-3.patch queued for re-testing.
Comment #11
chx CreditAttribution: chx commentedBack to RTBC after bot fluke.
Comment #12
webchickFixing tag so I can find this again once it's back from testbot.
Comment #13
pwolanin CreditAttribution: pwolanin commentedun-assigning since the review is done
Comment #14
catchCommitted/pushed to 8.x, thanks!