- Issue created by @acbramley
I kind of remember an existing issue for this and themers telling me they want it this way for some reason. If I can find it I will put the link here.
I have a theme hook called ca_container
which uses a twig template from outside of the theme called container.html.twig
(our approach has been to put templates alongside their component in our design system). However, at render time, the theme registry swaps out my custom path with the path to stable9's container.html.twig.
Here's what my theme hook looks like (using Pinto so this gets autogenerated via various traits)
When debugging into ThemeManager::render, I can see that when it calls $info = $theme_registry->get($hook);
it's returning the path to the stable9 template
I'm not sure if this is expected, or a bug. Obviously we can just change the template name and be happy but it'd be nice to have this working.
See above.
Active
11.0 🔥
Last updated
I kind of remember an existing issue for this and themers telling me they want it this way for some reason. If I can find it I will put the link here.