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.
token_entity_info_alter() adds a new property to entity info, and allows other modules to set this property in their hook_entity_info().
This should be documented in an api.php file -- AFAIK there is no standard for this, but the way Entity API module documents its additions is probably a good example.