Active
Project:
Computed Field
Version:
4.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2023 at 17:38 UTC
Updated:
1 Sep 2025 at 10:43 UTC
Jump to comment: Most recent
I created a computed field "stuff" on my node, and wanted to get that value as a token, like [node:computed_field_stuff] but it doesn't show up in the tokens list at /admin/help/token (or I'm not sure where to look). Does this module create a token for computed fields?
Comments
Comment #2
joachim commentedInteresting!
I wonder whether this is once again because computed fields are defined as code-based bundle fields?
Comment #3
mariacha1 commentedI bet you're right! Although I then got more complicated and created a base entity type field, but I didn't see it creating any tokens either. Here's what my Plugin docblock looks like:
I ended up defining my own token for this, but was pretty surprised that it didn't seem to work out of the box, so wanted to be sure I wasn't missing something simple.
Comment #4
joachim commentedI can't actually see in core where tokens for config fields get defined!
Comment #5
joachim commentedAh.
field_token_info_alter() is in token module :(
This is core being crap :(
Comment #6
joachim commentedComment #7
joachim commented