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.
Prepare a module for Drupal 9.
Comment | File | Size | Author |
---|---|---|---|
#4 | 3106606-4.patch | 1.89 KB | pfrenssen |
Comments
Comment #2
AstonVictor CreditAttribution: AstonVictor at DevBranch commentedComment #3
pfrenssenThanks for working on this! The patch looks good apart from one remark, but this is already fixed in the meantime in 8.x-1.x. The patch also needs a reroll.
We should not call the
\Drupal
methods in object oriented classes. These methods are only for backwards compatibility with procedural code. This should use dependency injection instead. This has already been fixed in 8.x-1.x so this change can simply be removed.Comment #4
pfrenssenRerolled against 8.x-1.x.
Comment #6
pfrenssenTests are passing on Drupal 8 and on Drupal 9! Awesome, thanks a lot for the contribution!