Example of form settings for custom twig formatters
All fields of the entity are exposed as twig variables

Description

This module provides a new field formatter making it possible to configure the field output using twig code through the user interface. All fields of the entity is exposed as twig variables, making it possible to configure the output of a field based on combination of information from different fields of the entity.

Fields supported

Here is an overview of supported fields types. New fields types can easily be given support, feel free to create an issue to add support for new fields:

  • boolean
  • comment
  • daterange
  • datetime
  • entity_reference
  • email
  • file
  • image
  • language
  • link
  • lists
  • string / text
  • telephone

Similar modules

Custom Formatters

Project information

Releases