- Issue created by @Anybody
- 🇩🇪Germany Anybody Porta Westfalica
Okay I think I found the reason:
if (empty($entity_type_labels[$entity_type_id])) { continue; }
is empty, because
$entity_type_id = $definition['needs-data'];
returns "term" for taxonomy terms, while the
$entity_type_labels
array has the key taxonomy_termSo there's no match due to Drupals history for inconsistencies here... https://api.drupal.org/api/drupal/core%21modules%21taxonomy%21taxonomy.t...
- 🇩🇪Germany Anybody Porta Westfalica
Okay I have no idea, how to fix this properly!
* @ContentEntityType( * id = "taxonomy_term",
So it would totally make sense to have the token keys and especially
$definition['needs-data']
to usetaxonomy_term
and notterm
but it doesn't... - First commit to issue fork.
- Status changed to Fixed
8 months ago 3:53pm 14 August 2024 - 🇩🇪Germany Anybody Porta Westfalica
Thanks for the quickfix @kongkx
The problem is that I guess there are even more cases like this...?
- 🇨🇳China kongkx
Yes, the value of "needs-data" is the "key" in token replace data, not actually an "entity_type_id".
Automatically closed - issue fixed for 2 weeks with no activity.