Duplicate templates in same namespace is valid use case

Created on 22 July 2022, almost 2 years ago
Updated 18 July 2023, 11 months ago

Hello,

I have in my Drupal log warning like below. I don't think it's something wrong. In my scenario it's perfectly valid to have same names in different folders. This message could be useful during development for some, but it's definitely wrong in production environment. It's possible to make it optionable?

Found multiple files for the "@page/styleguide.twig" template; it is recommended to only have one "styleguide.twig" file in the "page" namespace’s "themes/custom/proficio/static/templates/page" directory

Source: https://git.drupalcode.org/project/components/-/blob/3.x/src/Template/Co...

Thank you

πŸ“Œ Task
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic parisek

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.69.0 2024