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

Comments

Mac_Weber created an issue. See original summary.

joelpittet’s picture

You need to use _alter() hook in your theme, the definition of suggestions only works in modules. It's a gotcha kinda.

ankit agrawal’s picture

ankit agrawal’s picture

mohit_aghera’s picture

Status: Active » Needs review
mac_weber’s picture

Status: Needs review » Needs work

mac_weber’s picture

Status: Needs work » Closed (duplicate)

Sorry, 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