Problem/Motivation
Missing code example for function hook_theme_suggestions_HOOK() in file Theme.api.php
Proposed resolution
Add code example
Remaining tasks
Add code example
User interface changes
none
API changes
Documentation only
Data model changes
none
| Comment | File | Size | Author |
|---|
Comments
Comment #2
joelpittetYou need to use _alter() hook in your theme, the definition of suggestions only works in modules. It's a gotcha kinda.
Comment #3
ankit agrawal commentedComment #4
ankit agrawal commentedComment #5
mohit_aghera commentedComment #6
mac_weber commented□
Comment #7
mac_weber commentedSorry, I created this issue while testing a new tool for managing the issues using D.O api.
Actually, there is already example code for this hook, then we can remove the @todo tag.
Closing this issue in favor of #2632996: Remove @todo tags at functions hook_theme_suggestions_HOOK() and hook_theme_suggestions_HOOK_alter() in file Theme.api.php
Comment #8
star-szr