I am using the Menu Breadcrumb module to automatically generate a breadcrumb based on the menu placement of the currently viewed node. I want to change some of the titles in the breadcrumb chain based on a field on the node. If it exists and is not empty, the breadcrumb should use that instead of the node title.
Whats the most effective way to do this without extending Menu Breadcrumb to make a small edit? hook_system_breadcrumb_alter
seems to be very late in the process. I also don’t want to have any negative performance impact. Should I really override the _title_callback for Nodes? Would that impact anything?
Setting the menu title on the node is one way to do this, but there will be cases where nodes won’t be in a menu at all. I want to support both scenarios.