- Issue created by @lolcode
The details of the filesize and other media properties are currently buried in the field formatter.
If I need to have several differently themed download buttons in my design but want to keep the rest of the attributes I can't rely on the field formatter - even with the theme template approach proposed in #3059830.
Write a service that get's the media details. Use the same service to calculate properties for the field formatter and for a new Twig extension.
None.
A new twig extension should be available. Ideally it would be something like the link function but with media download attributes preset.
https://www.drupal.org/docs/theming-drupal/twig-in-drupal/functions-in-t... →
None.
Active
2.0
Code