- Issue created by @mariacha1
- π¬π§United Kingdom joachim
Interesting!
I wonder whether this is once again because computed fields are defined as code-based bundle fields?
- πΊπΈUnited States mariacha1
I 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:
@ComputedField( * id = "my_test_field", * label = @Translation("My test field"), * field_type = "string", * no_ui = TRUE, * attach = { * "scope" = "base", * "field_name" = "my_test_field", * "entity_types" = { * "taxonomy_term" = {}, * }, * }, * )
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.
- π¬π§United Kingdom joachim
I can't actually see in core where tokens for config fields get defined!
- π¬π§United Kingdom joachim
Ah.
field_token_info_alter() is in token module :(This is core being crap :(