- Issue created by @Grevil
- Assigned to Anybody
- 🇩🇪Germany Anybody Porta Westfalica
Best would be to do it just like within modules. I'll take a look. if it's possible somehow. Otherwise we could try to create a submodule within a theme. Never did that, but perhaps that's possible :D
- Assigned to lrwebks
- 🇩🇪Germany Anybody Porta Westfalica
@lrwebks please look for a Drupal core way to do this (Option 1 preferred). Is there a core problem to do this?
Any further thoughts for clean workarounds? Maybe we could define our own .yml instead or something that could also work in themes? - 🇩🇪Germany Anybody Porta Westfalica
I'll need to take a look, this seems hard or even impossible without hacks for now.
Maybe replacing the Plugin PHP file with a .yml could be a way to solve this, like for example layouts and other things are registered in themes and layouts... - 🇩🇪Germany Anybody Porta Westfalica
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Theme!ThemeManage... seems to be the right starting point I think! Especially maybe we have a chance through the alter hook