34 $title = $result->getTitle();
35 $titleSnippet = $result->getTitleSnippet();
36 if ( $titleSnippet ) {
37 $titleSnippet =
new HtmlArmor( $titleSnippet );
42 $link = $this->linkRenderer->makeLink( $title, $titleSnippet );
44 $redirectTitle = $result->getRedirectTitle();
46 if ( $redirectTitle !==
null ) {
47 $redirectText = $result->getRedirectSnippet();
48 if ( $redirectText ) {
49 $redirectText =
new HtmlArmor( $redirectText );
54 "<span class='searchalttitle'>" .
55 $this->specialSearch->msg(
'search-redirect' )->rawParams(
56 $this->linkRenderer->makeLink( $redirectTitle, $redirectText )
61 return "<li>{$link} {$redirect}</li>";