Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As discussed in IRC, an entity token type might be an interesting idea.
For example, that could provide generic properties like id, label, type and so on.
This would be useful when the entity_type is not known in advantage, one such example is userpoints which allows to reference an entity when granting points.
Comments
Comment #1
Dave ReidThinking more and more about this. Since it would be useful for modules that provide things on *all* entities, like my entity UUID module.
Comment #2
ashrafabedI'm working on adding support for all entity types in the comment_notify module. An entity:label token would be very helpful for outgoing notification emails.