This issue has novice tasks. If you are an experienced core developer and have multiple commit mentions, please review novices' work on these tasks rather than doing them yourself. Feedback from experienced contributors is valued.
Problem/Motivation
Preprocess function documentation standards do not state that @ingroup themeable
should be included in preprocess function docblocks. That group should only be included for functions or templates that actually produce markup and can be overridden in a theme.
A number of Twig conversions got in that converted a theme_ function to a template_preprocess_ function and left in the @ingroup themeable
from the theme function.
This is messing up the listing on https://api.drupal.org/api/drupal/core%21modules%21system%21theme.api.ph... which should only show theme functions and template files.
Proposed resolution
Remove @ingroup themeable
from all preprocess function docblocks.
Remaining tasks
- Write patch (novice)
- Review patch to check it fixes the issue, the change is properly documented and for coding standards.
- Keep issue summary up to date (novice)
User interface changes
n/a
API changes
n/a
Comments
Comment #1
joshtaylor CreditAttribution: joshtaylor commentedI will be writing a patch to fix this issue.
Comment #2
joshtaylor CreditAttribution: joshtaylor commentedThis patch removes the
@ingroup themeable
from the following functions:I couldn't find the
@ingroup themeable
in the following functions, as per the https://api.drupal.org/api/drupal/core%21modules%21system%21theme.api.ph... page, as I think they might have been removed already?:Comment #3
joshtaylor CreditAttribution: joshtaylor commentedComment #4
star-szrThanks @joshtaylor! I think the only one that was missed is template_preprocess_status_report().
Edit: Which I see is in the list of ones you couldn't find but is there I promise :)
Comment #5
visabhishek CreditAttribution: visabhishek commentedupdated patch as per #4. Please review
Comment #6
galooph CreditAttribution: galooph commentedPatch from #5 looks good. Verified that
@ingroup themeable
was removed from:and that it was already missing from:
Comment #7
star-szrSorry I missed this because I just did grep before, but we need to remove the line above the
@ingroup themeable
as well.So instead of:
Should be more like:
Comment #8
galooph CreditAttribution: galooph commentedHere's a revised patch as per the comments in #7.
Comment #10
star-szr8: drupal.remove-ingroup-themeable-from-preprocess-function-docblocks.2219617-08.patch queued for re-testing.
Comment #11
star-szrThanks @galooph!
Comment #12
webchickNice work!
Committed and pushed to 8.x. Thanks!
Comment #14
webchickOh, also? Thanks for making our docs clearer. :)