/**
  * Add badges to the language links.
  *
  * @param array &$languageLink
  * @param Title $languageLinkTitle
  * @param Title $title
  * @param OutputPage|null $output
  *
  * @return bool
  */
 public function doSkinTemplateGetLanguageLink(array &$languageLink, Title $languageLinkTitle, Title $title, OutputPage $output = null)
 {
     if (!$output) {
         // This would happen for versions of core that do not have change Ic479e2fa5cc applied.
         wfWarn(__METHOD__ . ': SkinTemplateGetLanguageLink hook called without OutputPage object!');
         return true;
     }
     $this->badgeDisplay->applyBadges($languageLink, $languageLinkTitle, $output);
     return true;
 }