Page MenuHomePhabricator

Remove calls to WikibaseRepo::getUserLanguage from entity search callbacks
Open, Needs TriagePublic

Description

Currently, the ENTITY_SEARCH_CALLBACK(s) defined in the files listed below call the deprecated UserLanguage service from WikibaseRepo. In order to retire this service, we will need to find a way to obtain the language in a more appropriate way, possibly through RequestContext::getLanguage().

Callers:

  • WikibaseRepo.entitytypes.php (Wikibase Extension)
  • WikibaseSearch.entitytypes.php (WikibaseCirrusSearch Extension)
  • WikibaseLexeme.entitytypes.php (WikibaseLexeme Extension)
  • WikibaseSearch.entitytypes.repo.php (WikibaseLexemeCirrusSearch Extension)