For my template I need to point to a subfolder in templates folder: templates/sub-folder/my-wall1.html.twig, the file is there, but nothing works.
What are the rules?
- translate minus (-) to underscore (_)
...
function my_module_theme() { return [ 'wall1' => [ 'template' => 'sub_folder/my_wall1', 'variables' => [ 'w1' => NULL ], ], ]; }
Update: According to the answers, I tried the following:
test/test.html.twig < does not work
test.html.twig < works, without subfolder and a name like this
An example or point to documentation would be great too?! Thanks.