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
\Drupal\Core\Menu\Form\MenuLinkDefaultForm::$moduleData is never used, nor is it initialized
Proposed resolution
Remove it
Possibly implement __get to trigger a deprecation error if someone tries to access it?
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#6 | 3088163-depricate-module-data-8-7.patch | 612 bytes | amjad1233 |
Comments
Comment #2
amjad1233Comment #3
xjm@larowlan asked whether we should deprecate the property and provide BC, instead of removing it.
NULL
. So, it should at most raise a notice.Therefore, I think we should go the simple route and just remove it.
Thanks!
Comment #4
larowlanSorry for the noise, #2940189: Deprecate system_get_info() already removed it while cleaning up calls to
system_get_info()
- I was looking at 8.7 when I saw it.Comment #5
larowlanComment #6
amjad1233Comment #7
amjad1233Comment #8
larowlanThis looks good to me, thank @amjad1233 - setting to RTBC on the assumption that the testbot likes it.
Comment #10
xjmNormally, we wouldn't commit patches that have any chance of disruption to the production (patch release) branch, but in this chance it's so slight I think it's OK. Committed and pushed to 8.7.x.
Congratulations @amjad1233 on your first core issue credit!
Comment #11
amjad1233Hi @xjm, Thanks for that. Next time I will make sure to check out the -dev branch before committing the patch.
Thanks once again.
Comment #12
larowlan🎉 congrats @amjad1233