I currently have two templates, one of which is page.html.twig, which is the main page and I can preprocess with MYTHEME_preprocess_page()
. MYTHEME_preprocess_page()
affects all the other pages in different modules.
The other template is _carousel.html.twig (theme/templates/includes/_carousel), which I include into page.html.twig, but I cannot hook into it with MYTHEME_preprocess__carousel()
.
Is this the default behavior, or am I missing something?
MYTHEME_preprocess__carousel()
cannot be used for a template file that is included into another template file.