The Drupal 7 Token module included the function token_get_entity_mapping() to handle the mapping of token-type-names to entity names. In Backdrop, the mapping is included as part of entity_get_info ().

Before:

if (!empty($entity_id)) {
  $token_type = token_get_entity_mapping('entity', $entity_type);
  $options['token data'][$token_type] = $entity;
}

After:

if (!empty($entity_id)) {
  $info = entity_get_info($entity_type);
  $token_type = $info['token type'];
  $options['token data'][$token_type] = $entity;
}
Introduced in branch: 
1.1.x
Introduced in version: 
1.1.0
Impacts: 
Module developers