68 if ( $this->languageConverter === null ) {
71 $this->languageConverter = MediaWikiServices::getInstance()->getLanguageConverterFactory()
90 $text = $this->getLanguageConverter()->convertHtml(
$title->getPrefixedText() );
91 return $this->getLinkRenderer()->makeLink(
$title,
new HtmlArmor( $text ) );
93 return Html::element(
'span', [
'class' =>
'mw-invalidtitle' ],
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
Marks HTML that shouldn't be escaped.
static element( $element, $attribs=[], $contents='')
Identical to rawElement(), but HTML-escapes $contents (like Xml::element()).
static getInvalidTitleDescription(IContextSource $context, $namespace, $title)
Get a message saying that an invalid title was encountered.
Variant of QueryPage which formats the result as a simple link to the page.
setLanguageConverter(ILanguageConverter $languageConverter)
ILanguageConverter null $languageConverter
preprocessResults( $db, $res)
Run a LinkBatch to pre-cache LinkCache information, like page existence and information for stub colo...
formatResult( $skin, $row)
Format the result as a simple link to the page.
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
executeLBFromResultWrapper(IResultWrapper $res, $ns=null)
Creates a new LinkBatch object, adds all pages from the passed result wrapper (MUST include title and...
getContentLanguage()
Shortcut to get content language.
Represents a title within MediaWiki.
static makeTitleSafe( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
The shared interface for all language converters.