MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onShowSearchHit ( $searchPage, $result, $terms, &$link, &$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html) | |
Use this hook to customize display of search hit. | |
Stable to implement.
Definition at line 12 of file ShowSearchHitHook.php.
MediaWiki\Search\Hook\ShowSearchHitHook::onShowSearchHit | ( | $searchPage, | |
$result, | |||
$terms, | |||
& | $link, | ||
& | $redirect, | ||
& | $section, | ||
& | $extract, | ||
& | $score, | ||
& | $size, | ||
& | $date, | ||
& | $related, | ||
& | $html | ||
) |
Use this hook to customize display of search hit.
SpecialSearch | $searchPage | |
SearchResult | $result | SearchResult to show |
string[] | $terms | Search terms, for highlighting (unreliable as search engine dependent) |
string | &$link | HTML of link to the matching page. May be modified. |
string | &$redirect | HTML of redirect info. May be modified. |
string | &$section | HTML of matching section. May be modified. |
string | &$extract | HTML of content extract. May be modified. |
string | &$score | HTML of score. May be modified. |
string | &$size | HTML of page size. May be modified. |
string | &$date | HTML of of page modification date. May be modified. |
string | &$related | HTML of additional info for the matching page. May be modified. |
string | &$html | May be set to the full HTML that should be used to represent the search hit. Must include the <li> ... </li> tags. Will only be used if the hook function returned false. |
Implemented in MediaWiki\HookContainer\HookRunner.