I’ve a Drupal hyperlink discipline configured to permit each inside and exterior hyperlinks and have the title discipline enabled, however optionally available.
I need customers to have the ability to reference inside entities with out having to specify something in separate title discipline, and have the Hyperlink discipline’s title pulled from the entity label. Nevertheless it seems that when the sector’s inside
title worth is left null, Drupal finally ends up utilizing the sector’s
uri worth because the hyperlink title. This conduct appears odd to me.
My query is that this: given an inside
uri worth that appears like:
entity:node/3500 how can I preprocess or alter the performance of the Hyperlink discipline to load within the entity’s title/label because the
title when it’s left empty by the content material editors.
I’ve looked for points on drupal.org however did not flip up a lot of something helpful. I discovered Get title from Route, which appears to advocate utilizing the TitleResolver, however that relies on placing collectively a $request object, which appears extraordinarily impractical.