Duplicate templates in same namespace is valid use case

Created on 22 July 2022, almost 3 years ago
Updated 14 June 2023, almost 2 years 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

✨ Feature request
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic parisek

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

Merge Requests

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.71.5 2024