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
The listing at https://api.drupal.org/api/drupal/core%21modules%21system%21theme.api.ph... includes templates defined in core themes, and it shouldn't. To be more helpful it should only list the default definition of each piece of markup/output: https://drupal.org/node/1823416#docblock
You can check Drupal 7's .tpl.php files as a comparison.
Some or all core theme templates (templates under /core/themes
only) include the line @ingroup themeable
, which should only be added to default theme output (in core this means output/templates defined by a module).
Proposed resolution
Remove the @ingroup themeable and line above from all core theme templates:
*
* @ingroup themeable
Remaining tasks
- Write patch (novice)
- Review patch to check it fixes the issue, the change is properly documented and for coding standards. Provide test evidence (novice)
- Keep issue summary up to date (novice)
User interface changes
n/a
API changes
n/a
Comment | File | Size | Author |
---|---|---|---|
#6 | drupalcore-removed_ingroup-2226185-6.patch | 4.22 KB | galooph |
#2 | drupalcore-removed_ingroup-2226185-1.patch | 4.18 KB | filijonka |
Comments
Comment #1
star-szrOops, copy+pasted the issue title and didn't change it.
Comment #2
filijonka CreditAttribution: filijonka commentedComment #3
filijonka CreditAttribution: filijonka commentedComment #4
galooph CreditAttribution: galooph commentedHi filijonka,
Thanks for the patch!
Looking good, but you seem to be adding an extra blank line here
Also, it would be handy if you could list the themes/functions that you have removed the @ingroup themeable from, similar to the list in the similar issue Remove @ingroup themeable from preprocess function docblocks
When you update your patch, change the issue status to 'Needs review' and then the testbot will test your patch.
Comment #5
galooph CreditAttribution: galooph commentedComment #6
galooph CreditAttribution: galooph commentedUpdated the patch from #2 to remove the blank line.
As per the Themeable group listing, the @ingroup themeable has been removed from:
Bartik:
Seven:
Comment #7
star-szrLooks great, thank you @filijonka and @galooph!
Comment #8
webchickNice catch. Thanks for making our docs clearer. :)
Committed and pushed to 8.x. Thanks!