Problem/Motivation
Automated hook conversion relies on accurate implements comments.
Several themes have several functions incorrectly identified.
Steps to reproduce
Open the files.
Proposed resolution
Fix them
Remaining tasks
Review
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3554678
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3554678-fix-implements-comments
changes, plain diff MR !13599
Comments
Comment #3
nicxvan commentedComment #4
nicxvan commentedComment #5
nicxvan commentedComment #6
quietone commentedI haven't looked closely at the MR so just a question, should this add the 'for ...' phrase per the standard. There is an issue to do that for all hooks but perhaps it is easy to add it here? That issue is #2886719: Follow code style for complex hooks
Comment #7
nicxvan commentedI took a pass since I thought it would be easy even if it seems slightly out of scope, I think just like many of the implements are wrong the pattern is all over the place, and some of the test preprocess are so long they go over the 80 character limit so I didn't change those ones.
I'd like to get this in so we can get the rector conversion working for themes if possible so if we need to take another pass, I'd like to just keep scope at getting the Implements right.
Also #2886719: Follow code style for complex hooks is postponed and I suspect the issue to remove Implements entirely will get in first so this likely doesn't need more work, we just need the implements right for rector.
Comment #8
shubham_pareek_19 commentedI’ve gone through the merge request and checked all the updated comments. Everything looks correct now the patterns follow the format.I didn’t see any functional changes.
Overall, looks good to me and ready to move forward.
Comment #11
quietone commented@shubham_pareek_19, thanks for explaining what you did to review this MR.
Committed to 11.x and cherry-picked to 11.3.x
Thanks.