hasLanguages = !empty( $out->getLanguageLinks() ); } /** * Whether the Title is also available in other languages or variants * @param Title $title * @return bool */ public function doesTitleHasLanguagesOrVariants( Title $title ) { if ( $this->hasLanguages ) { return true; } $langConv = MediaWikiServices::getInstance()->getLanguageConverterFactory() ->getLanguageConverter( $title->getPageLanguage() ); return $langConv->hasVariants(); } }