- Issue created by @jeanbryanx
- πΊπΈUnited States apmsooner
This formatter just returns the raw values as stored in the database. I would say it's probably better to just render in a view mode and customize the output in twig. I don't really do much of this the twig stuff myself but there is a base template that could be extended: https://git.drupalcode.org/project/custom_field/-/blob/3.0.x/templates/c.... I'll leave this open if others want to respond.
- πΊπΈUnited States apmsooner
You could technically create your own version of this formatter also and provide extra tokens but it could get a little tricky i assume if you're wanting image style support and stuff. https://git.drupalcode.org/project/custom_field/-/blob/3.0.x/src/Plugin/...
The better way to go IMO if you're comfortable with theming is to probably just do the work in twig so you could just render the field in views as a particular view mode. Best of luck ;)
- πΊπΈUnited States apmsooner
Lets move this issue to the other one https://www.drupal.org/project/custom_field/issues/3476033 β¨ Support not just values in custom template Active and create a generic solution to provide the tokens.
@jeanbryanx - please follow that issue and you can help with testing when a patch is ready.