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.
As entityManager() method will be removed before D9 release. So replace it with entityTypeManager()
Comment | File | Size | Author |
---|---|---|---|
#14 | 2907536-14.patch | 3.15 KB | andypost |
#14 | interdiff-5-15.txt | 2.89 KB | andypost |
#5 | remove_deprecated-2907536_1.patch | 1.95 KB | bapi_22 |
|
Comments
Comment #2
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #3
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #4
larowlanThere are 6 other references to entity manager in the module.
Let's do them all in one go.
Thanks
Comment #5
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedHi Larowlan,
One more EntityManagerInterface I found in the MessageEditForm. Instead of replacing it into EntityTypeManagerInterface, I have removed it, as it's already injected in parent class.
Uploading the updated patch.
Thanks,
Comment #6
bapi_22 CreditAttribution: bapi_22 at Cybage Software Pvt Ltd. commentedComment #7
Venkatesh Rajan.J CreditAttribution: Venkatesh Rajan.J as a volunteer and at DrupalPartners commentedComment #8
Venkatesh Rajan.J CreditAttribution: Venkatesh Rajan.J as a volunteer and at DrupalPartners commentedPatch applied successfully. Refer the screenshot
Comment #9
Venkatesh Rajan.J CreditAttribution: Venkatesh Rajan.J as a volunteer and at DrupalPartners commentedComment #10
andypostbtw parent class require it, looks you should call parent constructor as well
Comment #11
andypostConstructor of parent is slightly different in 8,7 core
Comment #12
andypostComment #13
Berdir$this->languageManager is actually unused, so we can remove that property and the constructor completely, that will be compatible with all versions.
Comment #14
andypostI found no other usage + fixed #13
Comment #16
larowlanThanks 🎉