Closed (works as designed)
Project:
Entity Reference Autocomplete
Version:
7.x-1.13
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2017 at 15:11 UTC
Updated:
6 Jul 2018 at 15:30 UTC
Jump to comment: Most recent
Comments
Comment #2
ahillio commentedComment #3
slv_ commentedHi @ykarthikvarma.
The function that resolves the label to use, already calls entity_label(), which means you can use hook_entity_info_alter() to add your own label callback and generate what you need.
Additionally, look for hook_entityreference_autocomplete_matches_alter into entityreference_autocomplete.api.php, as it's called after results have been prepared, and you can alter the rendered output there, too.
Closing.