Custom Twig Formatter provides a field formatter making it possible to configure the field output using twig code through the user interface.

One similar project:
Custom Formatters

One difference is that this module permits to configure the formatter of each field specifically, wheras Custom Formatters requiers you to first make a formatter types, and then apply it to the fields, which add an extra layer of effort if you for instance just need to configure 1 or 2 fields. Another difference is that Custom Twig Formatter expose all fields of the entity as twig variables, providing very high flexibility to customize the putput of the fields, for instance to configure the output of a field based on combination of information from different fields of the entity.

Project link

Custom Twig Formatter

Comments

matsbla created an issue. See original summary.

apaderno credited JeroenT.

apaderno credited saesa.

avpaderno’s picture

I am crediting users from the previous application.

avpaderno’s picture

Thank you for applying! Reviewers will review the project files, describing what needs to be changed.

Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smother review.

To reviewers: Please read How to review security advisory coverage applications, What to cover in an application review, and Drupal.org security advisory coverage application workflow.

Since the project is being used for this application, for the time this application is open, only the user who created the application can commit code.

matsbla’s picture

I discovered one bug, I've uploaded a patch here #3314302: Error: Missing bundle for entity type, I think I can't commit it while the module is in review.

avpaderno’s picture

@matsbla This application doesn't stop you from fixing bugs you find, or from changing the code to follow the coding standards, correctly use the Drupal API, or avoid security issues. If you find a security issue, for example, and you fix it before it's reported in this application, that's a point in your favor.

matsbla’s picture

Oh, my mistake, I managed to figure it out now, thanks!

avpaderno’s picture

Title: [D9] Custom Twig Formatter » [1.0.x] Custom Twig Formatter
Issue summary: View changes
avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Needs review » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the Slack #contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the reviewers.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.