Data Example 2

Please note that this module is nearing EOL. Due to many performance concerns and a large amount of legacy code, further development will be abandoned in favor of a spiritual successor: Glint.

Version 4.2 will be the final release of this module and will focus purely on performance optimizations. Moving forward, use of this module is NOT recommended, as it strays away from standard Drupal practices and can bring a big performance hit to your site if used excessively.

Overview

Harmonize streamlines preprocessing of entities in Drupal before template rendering.

It is a tool for developers and was originally made to facilitate collaboration between backend and frontend teams.

What does it do?

Harmonize makes it much easier to access field values in Drupal templates. It does this by preprocessing entity content and adding a new variable called harmony to your twig templates. This variable contains a simple, cleanly formatted array of data to work with.

Drupal already exposes the values of your content to your templates, but it is sometimes difficult to access said data.
This is especially true when trying to access values in nested entities.

Quickstart Guide

Visit the documentation here to get started.

Upgrading from v2.x

For any inquiries on upgrades from v2.x, visit here.

Project information

Releases