Closed (fixed)
Project:
Extensible BBCode
Version:
8.x-3.x-dev
Component:
Core
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Dec 2015 at 10:55 UTC
Updated:
27 Dec 2015 at 02:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cburschkaNot that easy, unfortunately. The theme registry does, in fact, want the template file to be in the templates/ folder of the module whose hook_theme() declares the hook.
Needs some more thought.
Comment #3
cburschkaGoing through the theme registry is a hack in the first place, because Drupal has a perfectly serviceable file-system loader.
Templates can be loaded as '@module/name.html.twig'.
For flexibility (because tags are entities that don't implicitly belong to a module), it would be best to require modules to explicitly name the namespace. This also means our internals don't change at all - it's purely a change to the documentation and to the sample implementation (the [list] tag).
Comment #4
cburschkaComment #5
cburschkaComment #6
cburschkaAnd done.