Context
This task came from a review to T250144.
As far as title is being under long deprecation process in favour of LinkTarget, the use of the following methods should be avoided:
$title->getPrefixedDBkey(),
$title->getPrefixedText(),
Expected Result
- TitleFormatter should be injected with DI
- $title->getPrefixedDBkey(), $title->getPrefixedText() should be replaced with relevant from TitleFormatter