Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Dec 2015 at 04:06 UTC
Updated:
14 Dec 2015 at 19:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mac_weber commentedbad title due to issue clone
Comment #3
mohit_aghera commentedComment #4
hussainwebYou don't need to return $suggestions. See bartik_theme_suggestions_form_alter for an example.
Comment #5
mohit_aghera commented@hussainweb,
Thanks for pointing out the issue. Fixing in updated patch.
Comment #6
mohit_aghera commentedComment #7
hussainwebExtra line. You should remove the extra blank line so that there is just one blank line before @param.
Comment #8
ankit agrawal commentedUpdated the code. Please check.
Comment #9
mohit_aghera commentedComment #10
mac_weber commentedI've created this issue while testing a new tool to post using the D.O API.
Actually, we already have code example there and I think we don't need anything more complex than what is already there.
We just need to remove the @todo tags.
Comment #11
star-szrThanks!
Comment #12
ankit agrawal commentedRemoved the @todo tags from hook_theme_suggestions[_HOOK]() and hook_theme_suggestions[_HOOK]_alter().
Comment #13
ankit agrawal commentedComment #14
joelpittetThanks @Ankit Agrawal
Comment #15
mac_weber commentedThis issue is a duplicate of #2111079: Add @code sample and test coverage per hook_theme_suggestions[_HOOK]() and hook_theme_suggestions[_HOOK]_alter()
Closing this one in favor of the other because we already have patches there covering more stuff and also it replaces the tags by code in the documentation.