- Issue created by @Ronald van Belzen
- 🇨🇭Switzerland megadesk3000
I experience the same issue after upgrading drupal/components to version 3.0.0-beta3 and i can confirm that the patch fixes the issue.
What i am not sure about is how the functionality implemented in \Drupal\graphql_twig\Template\Loader\Loader::findTemplate can work together with the new components definition syntax.
If one is using components and defined some namespaces in his thems info file like:
components: namespaces: src: - src base: - src/base
So after this, listComponents() will never be called in the findTemplate function, since $info['components'] will always be an array.
We are not using the "components" functionality from graphql_twig and i am not sure, what exactly it does.
For our case it fixes the issue, but if one has defined "components" in graphql_twig context in his themes info.yml then it will not work togethter with the new syntax from components. - 🇳🇱Netherlands Ronald van Belzen
I have not dug in very deep, but from what I can tell: it does not work together. The current bug just disrupts the process by causing an error. But I might be wrong.