Keep terms objects in the preprocess variable

Created on 28 January 2021, over 3 years ago
Updated 25 January 2024, 5 months ago

Problem/Motivation

An array with terms objects is overridden in the preprocess function. It can be useful to get the values of other term fields before displaying them in the template. For example, I have a field ("Display Name") that should be used instead of a term name.

Proposed resolution

Add terms objects to the variables array in template_preprocess_hierarchical_term_formatter()

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus w.drupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024