Theme debug shows twig templates filenames that can't be used

Created on 11 October 2016, over 7 years ago
Updated 13 February 2023, over 1 year ago

I added a template suggestion "input__this-is-something" and then appeared on the template suggestions as

input--this-is-something.html.twig

Placing a file with that filename doesn't work because the theme suggestions should be "input__this_is_something" but anyway It took me while to figure it out.

I guess the debug suggestion and the actual file discovery are not using the same logic.

🐛 Bug report
Status

Closed: works as designed

Version

9.5

Component
Theme 

Last updated about 16 hours ago

Created by

🇪🇸Spain rodrigoaguilera Barcelona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone New Zealand

    There was some activity here 6 years ago but none after that. It has been 10 months and there has been no confirmation that this is still a problem or other reports of this happening. I think it is time to close this.

    If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").

Production build 0.69.0 2024