Go to the documentation of this file.
33 $title = $result->getTitle();
34 $titleSnippet = $result->getTitleSnippet();
35 if ( $titleSnippet ) {
36 $titleSnippet =
new HtmlArmor( $titleSnippet );
41 $link = $this->linkRenderer->makeLink(
$title, $titleSnippet );
43 $redirectTitle = $result->getRedirectTitle();
45 if ( $redirectTitle !==
null ) {
46 $redirectText = $result->getRedirectSnippet();
47 if ( $redirectText ) {
48 $redirectText =
new HtmlArmor( $redirectText );
53 "<span class='searchalttitle'>" .
54 $this->specialSearch->msg(
'search-redirect' )->rawParams(
55 $this->linkRenderer->makeLink( $redirectTitle, $redirectText )
60 return "<li>{$link} {$redirect}</li>";
Marks HTML that shouldn't be escaped.
NOTE: this class is being refactored into an abstract base class.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
implements Special:Search - Run text & title search and display the output