tokens array is in the wrong order, field-item tokens don't get replaced

Created on 2 June 2015, about 10 years ago
Updated 2 June 2025, 3 months ago

I discovered by reading the code that there's a very useful feature whereby field-item tokens can be nested in other tokens.

This means that with an entityreference field, I can link each item to the linked entity like this:

[node:field-my-reference-field:[field-item:delta]:url]

However, this feature is currently broken because the tokens are replaced in the wrong order. The field-item tokens are being added to the end of the $replace_tokens array, rather than the beginning.

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom joachim

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

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.71.5 2024