-
Notifications
You must be signed in to change notification settings - Fork 10
Description
What?
Would be great if Field Formatters using Twig templates could for Admin users show Contextual links to used/configured Twig templates. That way guess which Template is used would not longer require finding the field/the formatter and its setting.
The formatter itself already has access to its own Configured Twig template. So that can be exposed for an admin or some logged In user with appropriate permissions. On the other hand, this may add delay to the rendering so skipping the logic totally for anonymous users will be needed.
Secondary What
I want to have on Each Metadata Display Entity View/Edit a slow but needed calculation/overview of where the template is being used:
Possible options are:
1.- A View Mode -> Field Formatter
2.-An Exposed Endpoint
3.- A View that uses one of the View Modes where Twig is enabled
4.- A View with a direct Field Formatter when the Twig template can be used
This requires some refactoring, probably adding some annotations for Plugins (Formatters) that use Twig templates allowing so a fast discovery. The key is always the "Formatter" who a formatter is used is the second iteration, Views will follow up based on those 2 previous discoveries