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.
Problem/Motivation
Chained comment:entity:(anything) tokens are marked as invalid even when they are not, because token validation has no context so the actual entity type is unknown.
Proposed resolution
Mark the comment:entity token as dynamic so validation skips it.
Remaining tasks
User interface changes
API changes
Data model changes
It seems to me that the comment:entity token should be marked as dynamic, because its token type depends on the entity type and tokens like comment:entity:blah are indicated as invalid although they can be resolved. When resolving, unlike when validating, the entity type is identified and successfully used to resolve the sub token.
Comments
Comment #2
BerdirThis was caused by a core bug and should be fixed now: #2468375: Status Reports: The following token types are not defined but have tokens - $info['types']['entity']