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
A number of deprecation errors are flagged by drupal-check
against the 8.x-2.0 branch. In order to provide compatibility with Drupal 9, these errors should be fixed.
It should be noted that the deprecation errors are fixed on the 8.x-2.x branch through a major refactor, however, it's not clear if this major refactor is a breaking change or whether a release containing the refactor will ever be created; the last changes made to the dev branch were over a year ago.
Proposed resolution
Provide a patch to fix the deprecations for the stable 8.x-2.0 release.
Comment | File | Size | Author |
---|---|---|---|
#11 | 3097065-11-drupal-9-compatibility.patch | 7.51 KB | jkswoods |
Comments
Comment #2
jkswoods CreditAttribution: jkswoods commentedOutput generated by
drupal-check
:Comment #3
jkswoods CreditAttribution: jkswoods commentedPatch for Drupal 9 support.
According to Acquia deprecation status, the error for
Calls to function kpr should not exist.
is uncategorised, and looking at the code it is not going to cause any problems as it relies on Devel to be enabled. tldr:kpr
doesn't need to be removed to support Drupal 9Comment #4
jkswoods CreditAttribution: jkswoods commentedComment #5
Eli-TComment #6
jkswoods CreditAttribution: jkswoods commentedComment #7
Ankush_03@jkswoods
Confirm base already have messenger dependency so you can directly use $this->messenger()->addMessage();
rather than
-19,12 +20,20 @@ class QueueUIConfirmDeleteForm extends ConfirmFormBase {
+ /**
+ * @var MessengerInterface
+ */
+ protected $messenger;
+
+
Comment #8
Ankush_03Comment #9
jkswoods CreditAttribution: jkswoods commentedComment #10
jkswoods CreditAttribution: jkswoods commentedComment #11
jkswoods CreditAttribution: jkswoods commentedAdded patch to address #7.
Comment #12
jkswoods CreditAttribution: jkswoods at interactive investor commentedComment #13
bceyssens@jkswoods,
As you already mentioned, the refactored code has been available for testing for over a year. I just released a new version, ready for D9. Changes made during the refactor should cover all of the ones in your patch.