Last modified: 2014-11-06 16:31:35 UTC
When rendering links to referenced items in an EntityView, we should use pre-fetched labels from an EntityInfoBuilder, instead of loading each of the entities in full just to get the label. However, EntityView resp. ClaimHtmlGenerator and related classes use a SnakFormatter for rendering snak values. The SnakFormatter is provided to EntityView via the constructor. We need to inject the information from the EntityInfoBuilder into the EntityIdHtmlLinkFormatters buried deep in the SnakFormatter.